Skip to content

Not giving config-file to omicron-status returns TypeError #43

@duncanmmacleod

Description

@duncanmmacleod

Not passing the --config-file option to omicron-status results in a TypeError:

Traceback (most recent call last):
  File "/home/detchar/opt/gwpysoft-2.7/bin/omicron-status", line 172, in <module>
    ok = cp.read(args.config_file)
  File "/home/detchar/opt/gwpysoft-2.7/lib/python2.7/site-packages/backports/configparser/__init__.py", line 702, in read
    for filename in filenames:
TypeError: 'NoneType' object is not iterable

Ideally the command-line parser should be changed to require at least one file, or better error handling should be implemented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions