forked from openlp/openlp
Fix #963894: expect also OSError while checking for media backends.
This commit is contained in:
parent
20bfde8e5a
commit
f51f19e2b9
@ -114,7 +114,9 @@ class MediaController(object):
|
||||
log.debug(u'Importing controller %s', modulename)
|
||||
try:
|
||||
__import__(modulename, globals(), locals(), [])
|
||||
except ImportError:
|
||||
# On some platforms importing vlc.py might cause
|
||||
# also OSError exception. (e.g. Mac OS X)
|
||||
except (ImportError, OSError):
|
||||
log.warn(u'Failed to import %s on path %s',
|
||||
modulename, path)
|
||||
controller_classes = MediaPlayer.__subclasses__()
|
||||
|
Loading…
Reference in New Issue
Block a user