aclient: log exceptions; don't reset core-uri

This commit is contained in:
Martijn Voncken 2008-07-08 18:00:05 +00:00
parent 50c8741a41
commit e0ce28cb8f
1 changed files with 4 additions and 3 deletions

View File

@ -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 = []