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:
Yann Leboulanger 2005-12-10 12:28:56 +00:00
parent 9db60f405d
commit 6a0599500e
1 changed files with 1 additions and 1 deletions

View File

@ -1339,7 +1339,7 @@ class Interface:
try:
import remote_control
self.remote_ctrl = remote_control.Remote()
except (exceptions.DbusNotSupported, exceptions.SessionBusNotPresent):
except:
self.remote_ctrl = None
else:
self.remote_ctrl = None