Project

General

Profile

Actions

Bug #5047

closed

ConfigParser reports NoSectionError when no config file is found

Added by Anchi Cheng almost 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Leginon subsystem
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 #1

Updated by Anchi Cheng over 6 years ago

  • Status changed from Assigned to Closed
Actions

Also available in: Atom PDF