Open astrobokonon opened 4 years ago
A quick look suggests that this is buried down deep in nightshift.webcam.grab_cams.simpleImageCopy
, specifically here:
Seems like I'm just calling get
(renamed to httpget
in the import) from requests
https://requests.readthedocs.io/en/latest/api/#requests.request suggests I can just slap a timeout=
keyword in here, since requests.get
is really just requests.request("GET", ...)
and handle the exception appropriately (if it's not already caught earlier in the call chain that gets here).
Downloading an image from dct-allsky failed, in the middle of grabbing the image, and things just hung.
It hung for hours there until someone noticed, so I restarted by hand and now the errors are getting trapped properly and timing out.