mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 17:31:36 +00:00
catch zbar.UnsupportedError
This commit is contained in:
parent
b5acdab3e9
commit
b614a673eb
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue