catch all exceptions when we try to import remote_control: under win we have:
NameError: name 'DbusPrototype' is not defined
This commit is contained in:
parent
9db60f405d
commit
6a0599500e
|
@ -1339,7 +1339,7 @@ class Interface:
|
||||||
try:
|
try:
|
||||||
import remote_control
|
import remote_control
|
||||||
self.remote_ctrl = remote_control.Remote()
|
self.remote_ctrl = remote_control.Remote()
|
||||||
except (exceptions.DbusNotSupported, exceptions.SessionBusNotPresent):
|
except:
|
||||||
self.remote_ctrl = None
|
self.remote_ctrl = None
|
||||||
else:
|
else:
|
||||||
self.remote_ctrl = None
|
self.remote_ctrl = None
|
||||||
|
|
Loading…
Reference in New Issue