From b614a673eb1e05d95e626a658651151b6cf8cc7e Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 26 Jun 2014 19:23:15 +0200 Subject: [PATCH] catch zbar.UnsupportedError --- plugins/qrscanner.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) 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 -- 1.7.1