Wrap recording creation in an all catching wrapper

master
esensar 2018-05-29 18:22:20 +02:00
parent 8cb0661eb6
commit 1ae5d1a2b8
1 changed files with 1 additions and 1 deletions

View File

@ -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))