Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logger not always initialized #3

Open
ksuarz opened this issue Feb 19, 2014 · 0 comments
Open

Logger not always initialized #3

ksuarz opened this issue Feb 19, 2014 · 0 comments
Labels

Comments

@ksuarz
Copy link
Member

ksuarz commented Feb 19, 2014

For example, try running it with too few arguments. We try to log the error, but since the logger has not yet been initialized, we get this:

Traceback (most recent call last):
  File "/usr/bin/pushpackage", line 26, in <module>
    RUtools.run_pushpackage()
  File "/usr/lib/python2.6/site-packages/RUtools/__init__.py", line 498, in run_pushpackage
    myapp.logger.error("Error: Too few arguments: " + str(args))
AttributeError: 'NoneType' object has no attribute 'error'

Either initialize the logger up front or do something else.

@ksuarz ksuarz added the bug label Feb 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant