important catch error for network

This commit is contained in:
DJ2LS 2023-10-26 09:44:05 +02:00
parent 5b8a6201f5
commit f9c281eb54

View file

@ -1409,10 +1409,11 @@ def send_modem_state():
try:
json_out = json.dumps(output)
except Exception as e:
log.warning("[SCK] error while json conversion for modem state", e=e)
return json_out
except Exception as e:
log.warning("[SCK] error while json conversion for modem state", e=e, data=output)
return json_out
def command_response(command, status):