git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
b5acdab
)
catch zbar.UnsupportedError
author
ThomasV
<thomasv@gitorious>
Thu, 26 Jun 2014 17:23:15 +0000 (19:23 +0200)
committer
ThomasV
<thomasv@gitorious>
Thu, 26 Jun 2014 17:23:15 +0000 (19:23 +0200)
plugins/qrscanner.py
patch
|
blob
|
history
diff --git
a/plugins/qrscanner.py
b/plugins/qrscanner.py
index
e99a0bc
..
c42347c
100644
(file)
--- a/
plugins/qrscanner.py
+++ b/
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