fix finally call for 2.4 compatibility
This commit is contained in:
parent
bf26a9ef50
commit
77a63c791c
|
@ -156,17 +156,18 @@ class CoreProxy(gobject.GObject):
|
||||||
|
|
||||||
if self._multi is not None:
|
if self._multi is not None:
|
||||||
try:
|
try:
|
||||||
for i, ret in enumerate(self._multi()):
|
try:
|
||||||
try:
|
for i, ret in enumerate(self._multi()):
|
||||||
if block == False:
|
try:
|
||||||
gobject.idle_add(self._callbacks[i], ret)
|
if block == False:
|
||||||
else:
|
gobject.idle_add(self._callbacks[i], ret)
|
||||||
self._callbacks[i](ret)
|
else:
|
||||||
except:
|
self._callbacks[i](ret)
|
||||||
pass
|
except:
|
||||||
except socket.error, e:
|
pass
|
||||||
log.warning("Could not contact daemon: %s", e)
|
except socket.error, e:
|
||||||
self.set_core_uri(None)
|
log.warning("Could not contact daemon: %s", e)
|
||||||
|
self.set_core_uri(None)
|
||||||
finally:
|
finally:
|
||||||
self._callbacks = []
|
self._callbacks = []
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue