fix exception in handle_events

This commit is contained in:
Marcos Pinto 2007-06-26 20:12:47 +00:00
parent 433e6aa28d
commit 2a646d91c0

View File

@ -490,11 +490,13 @@ class Manager:
# Handle them for the backend's purposes, but still send them up in case the client # Handle them for the backend's purposes, but still send them up in case the client
# wants to do something - show messages, for example # wants to do something - show messages, for example
ret = [] ret = []
try:
event = deluge_core.pop_event() event = deluge_core.pop_event()
except:
pass
else:
while event is not None: while event is not None:
# print "EVENT: ", event # print "EVENT: ", event
ret.append(event) ret.append(event)
@ -529,6 +531,12 @@ class Manager:
"tracker_messages", "tracker_messages",
new) new)
try:
event = deluge_core.pop_event()
except:
pass
else:
event = deluge_core.pop_event() event = deluge_core.pop_event()
return ret return ret