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)
|
callback(ret)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
except (socket.error, xmlrpclib.ProtocolError,
|
except (socket.error, xmlrpclib.ProtocolError,
|
||||||
deluge.xmlrpclib.Fault, Exception), e:
|
deluge.xmlrpclib.Fault, Exception), e:
|
||||||
log.warning("Could not contact daemon: %s", e)
|
log.warning("Multi-call Exception: %s:%s", e, getattr(e,"message",None))
|
||||||
self.set_core_uri(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:
|
finally:
|
||||||
self._callbacks = []
|
self._callbacks = []
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user