mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-22 08:08:17 +00:00
fix exception in handle_events
This commit is contained in:
parent
433e6aa28d
commit
2a646d91c0
14
src/core.py
14
src/core.py
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user