Caltech-IPAC / hiresprv

Keck HIRES PRV pipeline service access
4 stars 0 forks source link

Better messaging/error trapping on bad dates #48

Closed maswain closed 4 years ago

maswain commented 4 years ago

Hi, If you enter a date with incorrect format (say a character string or without hyphens like the following:

rtn = koa.by_dates("""20091231 20130629 20130912 20150606 """)

The response is: post request exception: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))

Perhaps an error can be returned that the date is not in the correct format rather than Connection aborted.

-Melanie

bjfultn commented 4 years ago

Implemented a date checker in PR #50