This commit is contained in:
Balthasar Reuter committed 2015-07-01 00:41:41 +02:00
1 parent df9b615d7b
commit 9df942423d
1 file changed
+1 -2
+1 -2
View File
@@ -51,8 +51,7 @@ 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 or
"Perhaps no focus" in e.output:
if "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)