X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=plugins%2Fqrscanner.py;fp=plugins%2Fqrscanner.py;h=c42347c27cb5dfa3142c1cfd614f4eda57b11e2d;hb=b614a673eb1e05d95e626a658651151b6cf8cc7e;hp=e99a0bc79c7a7ae4a4677a2cf8e926ff9b9362d0;hpb=b5acdab3e98f22ae212dd9aa091f00d3132c186f;p=electrum-nvc.git diff --git a/plugins/qrscanner.py b/plugins/qrscanner.py index e99a0bc..c42347c 100644 --- 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