Increased waiting time on 'no focus' to avoid nasty canon bug

This commit is contained in:
Balthasar Reuter
2015-07-01 00:36:47 +02:00
parent fa877a60bc
commit df9b615d7b
2 changed files with 3 additions and 2 deletions

View File

@@ -51,7 +51,8 @@ class Camera_gPhoto:
if "ERROR" in output:
raise subprocess.CalledProcessError(returncode=0, cmd=cmd, output=output)
except subprocess.CalledProcessError as e:
if "Canon EOS Capture failed: 2019" in e.output:
if "Canon EOS Capture failed: 2019" in e.output or
"Perhaps no focus" in e.output:
raise CameraException("Can't focus!\nMove a little bit!", True)
elif "No camera found" in e.output:
raise CameraException("No (supported) camera detected!", False)

View File

@@ -320,7 +320,7 @@ class Photobooth:
self.display.clear()
self.display.show_message(e.message)
self.display.apply()
sleep(3)
sleep(5)
else:
raise CameraException("Giving up! Please start again!", False)
else: