mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
important catch error for network
This commit is contained in:
parent
5b8a6201f5
commit
f9c281eb54
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue