Actions
Bug #5047
closedConfigParser reports NoSectionError when no config file is found
Status:
Closed
Priority:
Normal
Assignee:
Category:
Leginon subsystem
Target version:
Start date:
06/24/2017
Due date:
% Done:
0%
Estimated time:
Affected Version:
Appion/Leginon 3.2
Show in known bugs:
No
Workaround:
Description
For example,
Traceback (most recent call last): File "/usr/local/bin/reduxd", line 3, in <module> import redux.server File "/usr/local/lib/python2.7/dist-packages/redux/server.py", line 9, in <module> import redux.reduxlog File "/usr/local/lib/python2.7/dist-packages/redux/reduxlog.py", line 5, in <module> import redux.reduxconfig File "/usr/local/lib/python2.7/dist-packages/redux/reduxconfig.py", line 23, in <module> config['server host'] = configparser.get('server','host') File "/usr/lib/python2.7/ConfigParser.py", line 607, in get raise NoSectionError(section) ConfigParser.NoSectionError: No section: 'server'
Actions