aclient: log exceptions; don't reset core-uri
This commit is contained in:
parent
50c8741a41
commit
e0ce28cb8f
|
@ -95,10 +95,11 @@ class CoreProxy(gobject.GObject):
|
|||
callback(ret)
|
||||
except:
|
||||
pass
|
||||
except (socket.error, xmlrpclib.ProtocolError,
|
||||
except (socket.error, xmlrpclib.ProtocolError,
|
||||
deluge.xmlrpclib.Fault, Exception), e:
|
||||
log.warning("Could not contact daemon: %s", e)
|
||||
self.set_core_uri(None)
|
||||
log.warning("Multi-call Exception: %s:%s", e, getattr(e,"message",None))
|
||||
#self.set_core_uri(None) , disabled : there are many reasons for an exception ; not just an invalid core.
|
||||
#todo : publish an exception event, ui's like gtk could popup a dialog for this.
|
||||
finally:
|
||||
self._callbacks = []
|
||||
|
||||
|
|
Loading…
Reference in New Issue