Wrap recording creation in an all catching wrapper
parent
8cb0661eb6
commit
1ae5d1a2b8
|
@ -51,7 +51,7 @@ class MqttClient:
|
|||
devices.create_recording(
|
||||
MqttClient.get_device_id(message.topic),
|
||||
json.loads(message.payload.decode()))
|
||||
except ValueError:
|
||||
except Exception:
|
||||
print("ERROR!")
|
||||
error_type, error_instance, traceback = sys.exc_info()
|
||||
print("Type: " + str(error_type))
|
||||
|
|
Loading…
Reference in New Issue