Browse Source

catch zbar.UnsupportedError

283
ThomasV 11 years ago
parent
commit
b614a673eb
  1. 2
      plugins/qrscanner.py

2
plugins/qrscanner.py

@ -35,6 +35,8 @@ class Plugin(BasePlugin):
try:
proc = zbar.Processor()
proc.init(video_device=self.video_device())
except zbar.UnsupportedError:
return False
except zbar.SystemError:
# Cannot open video device
pass

Loading…
Cancel
Save