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

LCOGTingest should return a descriptive error when the date format is incorrect #53

Open
abostroem opened this issue Aug 18, 2020 · 0 comments

Comments

@abostroem
Copy link
Collaborator

LCOGTingest.py and lscloop.py use different date formats (2020-01-01 vs 20201010). When the lscloop.py date format is used for LCOGTingest.py, it results in a non-descriptive error which is challenging to trace to the issue:

LCOGTingest.py -s 20200201 -e 20200331 -r reduced -t STANDARD --public -n L107
Traceback (most recent call last):
  File "/usr/local/bin/LCOGTingest.py", line 300, in <module>
    covers='POINT({} {})'.format(*args.coords) if args.coords else None)
  File "/usr/local/bin/LCOGTingest.py", line 37, in get_metadata
    frames = response['results']
KeyError: 'results'

LCOGTingest.py should either gracefully handle the different date formats or should recognize when the wrong format is used and let the user know

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