Debug output removed
This commit is contained in:
@@ -318,8 +318,7 @@ class Photobooth:
|
|||||||
remaining_attempts = 0
|
remaining_attempts = 0
|
||||||
except CameraException as e:
|
except CameraException as e:
|
||||||
# On recoverable errors: display message and retry
|
# On recoverable errors: display message and retry
|
||||||
#if e.recoverable:
|
if e.recoverable:
|
||||||
print remaining_attempts
|
|
||||||
if remaining_attempts > 0:
|
if remaining_attempts > 0:
|
||||||
self.display.clear()
|
self.display.clear()
|
||||||
self.display.show_message(e.message)
|
self.display.show_message(e.message)
|
||||||
@@ -327,8 +326,8 @@ class Photobooth:
|
|||||||
sleep(5)
|
sleep(5)
|
||||||
else:
|
else:
|
||||||
raise CameraException("Giving up! Please start over!", False)
|
raise CameraException("Giving up! Please start over!", False)
|
||||||
#else:
|
else:
|
||||||
# raise e
|
raise e
|
||||||
|
|
||||||
# Sleep for a little bit if necessary
|
# Sleep for a little bit if necessary
|
||||||
toc = clock() - tic
|
toc = clock() - tic
|
||||||
|
|||||||
Reference in New Issue
Block a user