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

View File

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