mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-17 13:56:47 +00:00
aclient: log exceptions; don't reset core-uri
This commit is contained in:
parent
50c8741a41
commit
e0ce28cb8f
@ -97,8 +97,9 @@ class CoreProxy(gobject.GObject):
|
||||
pass
|
||||
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…
x
Reference in New Issue
Block a user