coagulant / critics

Notify about new reviews in AppStore and Google Play in slack
BSD 3-Clause "New" or "Revised" License
23 stars 9 forks source link

Default locale unavailable #4

Closed coagulant closed 8 years ago

coagulant commented 8 years ago
Traceback (most recent call last):
  File "/home/critics/workspace/env/bin/critics", line 11, in <module>
    sys.exit(main())
  File "/home/critics/workspace/env/lib/python2.7/site-packages/critics/__init__.py", line 9, in main
    return cli(auto_envvar_prefix=envvar_prefix)
  File "/home/critics/workspace/env/lib/python2.7/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/home/critics/workspace/env/lib/python2.7/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/home/critics/workspace/env/lib/python2.7/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/critics/workspace/env/lib/python2.7/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/home/critics/workspace/env/lib/python2.7/site-packages/critics/commands.py", line 42, in cli
    settings = setup_languages(settings)
  File "/home/critics/workspace/env/lib/python2.7/site-packages/critics/commands.py", line 96, in setup_languages
    settings['language'] = [default_locale()[:2]]
TypeError: 'NoneType' object has no attribute '__getitem__'