From 1ae5d1a2b8604639b79361ced877d421af5af4dd Mon Sep 17 00:00:00 2001 From: esensar Date: Tue, 29 May 2018 18:22:20 +0200 Subject: [PATCH] Wrap recording creation in an all catching wrapper --- app/mqtt/mqtt_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mqtt/mqtt_client.py b/app/mqtt/mqtt_client.py index c2dff1d..a722fbe 100644 --- a/app/mqtt/mqtt_client.py +++ b/app/mqtt/mqtt_client.py @@ -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))