Handling arbitrary exceptions now in main loop

This commit is contained in:
Balthasar Reuter
2015-06-30 23:58:02 +02:00
parent 5471f1ee6c
commit 7e947f3492

View File

@@ -148,6 +148,9 @@ class Photobooth:
except CameraException as e:
self.handle_exception(e.message)
except Exception as e:
print("SERIOUS ERROR!")
self.handle_exception(e.message)
def handle_gpio(self, channel):
if channel in [ self.trigger_channel, self.shutdown_channel ]: