diff --git a/src/gajim.py b/src/gajim.py index 73797b790..c82d5f4f1 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -829,7 +829,7 @@ class Interface: self.remote = remote_control.Remote(self) def disable_dbus(self): - if self.remote: # FIXME: A handler is already registered for the path starting with path[0] = "org" + if hasattr(self, 'remote') and self.remote: # FIXME: A handler is already registered for the path starting with path[0] = "org" del (self.remote) self.remote = None