Skip to content

Commit

Permalink
Debug output removed
Browse files Browse the repository at this point in the history
  • Loading branch information
reuterbal committed Jun 30, 2015
1 parent 604b789 commit 6ab1f6f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions photobooth.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,17 +318,16 @@ def take_picture(self):
remaining_attempts = 0
except CameraException as e:
# On recoverable errors: display message and retry
#if e.recoverable:
print remaining_attempts
if e.recoverable:
if remaining_attempts > 0:
self.display.clear()
self.display.show_message(e.message)
self.display.apply()
sleep(5)
else:
raise CameraException("Giving up! Please start over!", False)
#else:
# raise e
else:
raise e

# Sleep for a little bit if necessary
toc = clock() - tic
Expand Down

0 comments on commit 6ab1f6f

Please sign in to comment.