Log socket or xmlrpc errors that cause the ui to disconnect from the

core
This commit is contained in:
Andrew Resch 2008-11-30 21:18:11 +00:00
parent 90637921ee
commit d5f2a4d25f
1 changed files with 1 additions and 0 deletions

View File

@ -100,6 +100,7 @@ class CoreProxy(gobject.GObject):
except:
pass
except (socket.error, xmlrpclib.ProtocolError), e:
log.error("Socket or XMLRPC error: %s", e)
self.set_core_uri(None)
except (deluge.xmlrpclib.Fault, Exception), e:
#self.set_core_uri(None) , disabled : there are many reasons for an exception ; not just an invalid core.