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

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

Open
duncanmmacleod opened this issue Nov 18, 2016 · 0 comments
Open

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

duncanmmacleod opened this issue Nov 18, 2016 · 0 comments

Comments

@duncanmmacleod
Copy link
Member

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.

areeda pushed a commit to areeda/pyomicron that referenced this issue Sep 4, 2022
areeda added a commit that referenced this issue Sep 9, 2022
* Address issue #43, bad error message(s) for missing arguments we can't determine defaults for

* Improve help string

Co-authored-by: Joseph Areeda <[email protected]>
Co-authored-by: Evan Goetz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant