From 7e947f349238d188c7a83f2d942a1533cb3e1574 Mon Sep 17 00:00:00 2001 From: Balthasar Reuter Date: Tue, 30 Jun 2015 23:58:02 +0200 Subject: [PATCH] Handling arbitrary exceptions now in main loop --- photobooth.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/photobooth.py b/photobooth.py index 783490b..cb0e30e 100755 --- a/photobooth.py +++ b/photobooth.py @@ -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 ]: