Loading VLC module can also result in an OSError

This commit is contained in:
Tomas Groth 2019-06-10 22:44:24 +02:00
parent 4361159434
commit 4f705a649a
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ def get_vlc():
if 'vlc' not in sys.modules:
try:
import vlc # noqa module is not used directly, but is used via sys.modules['vlc']
except ImportError:
except (ImportError, OSError):
return None
# Verify that VLC is also loadable
is_vlc_available = False