NoneType on some SBIG GET
2023-06-25 00:59:11.460406 ERROR | HTTPConnectionPool(host='10.185.119.104', port=80): Max retries exceeded with url: /api/ImagerGetSettings.cgi?AmbientTemperature&CCDTemperatureSetpoint&CCDTemperature&CoolerState&CoolerPower&BinX&BinY&CameraXSize&CameraYSize&StartX&StartY&NumX&NumY (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7fe40cf02560>, 'Connection to 10.185.119.104 timed out. (connect timeout=3)')) (check inner_function:98)
Debugging middleware caught exception in streamed response at a point where response headers were already sent.
Traceback (most recent call last):
File "/home/antola/.local/lib/python3.10/site-packages/werkzeug/wsgi.py", line 462, in __next__
return self._next()
File "/home/antola/.local/lib/python3.10/site-packages/werkzeug/wrappers/response.py", line 50, in _iter_encoded
for item in iterable:
File "/home/antola/software-di-controllo/api/home.py", line 218, in inner
cs = cam_status().get()
File "/home/antola/software-di-controllo/api/camera.py", line 426, in get
settings = Settings().get() #cam.all
File "/home/antola/software-di-controllo/api/camera.py", line 411, in get
"response": devices.cam.all,
File "/home/antola/software-di-controllo/devices/stx.py", line 176, in all
ambient, setpoint, temperature, cool, fan = list(map(float,res[:5]))
TypeError: 'NoneType' object is not subscriptable