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
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
|
||||
# wants to do something - show messages, for example
|
||||
ret = []
|
||||
|
||||
try:
|
||||
event = deluge_core.pop_event()
|
||||
|
||||
except:
|
||||
pass
|
||||
else:
|
||||
while event is not None:
|
||||
# print "EVENT: ", event
|
||||
# print "EVENT: ", event
|
||||
|
||||
ret.append(event)
|
||||
|
||||
|
@ -529,6 +531,12 @@ class Manager:
|
|||
"tracker_messages",
|
||||
new)
|
||||
|
||||
|
||||
try:
|
||||
event = deluge_core.pop_event()
|
||||
except:
|
||||
pass
|
||||
else:
|
||||
event = deluge_core.pop_event()
|
||||
|
||||
return ret
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue