mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 15:08:40 +00:00
fix exception in handle_events
This commit is contained in:
parent
433e6aa28d
commit
2a646d91c0
1 changed files with 47 additions and 39 deletions
12
src/core.py
12
src/core.py
|
@ -490,9 +490,11 @@ 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
|
||||||
|
|
||||||
|
@ -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…
Add table
Add a link
Reference in a new issue