tcatch zbar.UnsupportedError - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit b614a673eb1e05d95e626a658651151b6cf8cc7e DIR parent b5acdab3e98f22ae212dd9aa091f00d3132c186f HTML Author: ThomasV <thomasv@gitorious> Date: Thu, 26 Jun 2014 19:23:15 +0200 catch zbar.UnsupportedError Diffstat: M plugins/qrscanner.py | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) --- DIR diff --git a/plugins/qrscanner.py b/plugins/qrscanner.py t@@ -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