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

KeyError if unable to load config #3

Closed
IrishPrime opened this issue Apr 9, 2016 · 0 comments
Closed

KeyError if unable to load config #3

IrishPrime opened this issue Apr 9, 2016 · 0 comments
Assignees
Labels

Comments

@IrishPrime
Copy link
Owner

If the config file cannot be loaded, references to CONFIG['Options'] throw a KeyError. The DEFAULT section works properly for missing values, but an Options section must first exist.

WARNING:root:Unable to load config. Traceback (most recent call last): File "/home/media/downloads/nielsen/nielsen.py", line 172, in <module> main() File "/home/media/downloads/nielsen/nielsen.py", line 157, in main level=getattr(logging, CONFIG['Options']['LogLevel'], 30)) File "/usr/lib/python3.5/configparser.py", line 956, in __getitem__ raise KeyError(key) KeyError: 'Options'

@IrishPrime IrishPrime added the bug label Apr 9, 2016
@IrishPrime IrishPrime self-assigned this Apr 9, 2016
IrishPrime added a commit that referenced this issue Apr 9, 2016
IrishPrime added a commit that referenced this issue Apr 9, 2016
IrishPrime added a commit that referenced this issue Feb 23, 2019
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