catch zbar.UnsupportedError
[electrum-nvc.git] / plugins / qrscanner.py
index e99a0bc..c42347c 100644 (file)
@@ -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