Increased waiting time on 'no focus' to avoid nasty canon bug
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user