[Deluge] #3379: Notifications-0.3/...:CoreNotifications._on_torrent_finished_event(): KeyError exception due to incorrect call to torrent.get_status()

4 views
Skip to first unread message

Deluge

unread,
Apr 7, 2020, 10:01:17 AM4/7/20
to delug...@googlegroups.com
#3379: Notifications-0.3/...:CoreNotifications._on_torrent_finished_event():
KeyError exception due to incorrect call to torrent.get_status()
----------------------------+---------------------------
Reporter: lalbornoz | Type: bug
Status: new | Priority: minor
Milestone: needs verified | Component: Plugin
Version: 2.0.3 | Keywords: notifications
----------------------------+---------------------------
The Notifications plugin as of version 0.3 calls
'''torrent.get_status()''' with an empty ''keys'' list whilst expecting
the presence of the keys ''name'' and ''num_files'', causing a
''!KeyError'' exception to be thrown. The patch enclosed fixes this by
passing ''['name', 'num_files']'' to '''torrent.get_status()'''.

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3379>
Deluge <https://deluge-torrent.org/>
Deluge Project

Deluge

unread,
Apr 7, 2020, 10:03:14 AM4/7/20
to delug...@googlegroups.com
#3379: Notifications-0.3/...:CoreNotifications._on_torrent_finished_event():
KeyError exception due to incorrect call to torrent.get_status()
------------------------+----------------------------
Reporter: lalbornoz | Owner:

Type: bug | Status: new
Priority: minor | Milestone: needs verified
Component: Plugin | Version: 2.0.3
Resolution: | Keywords: notifications
------------------------+----------------------------
Changes (by lalbornoz):

* Attachment "deluge-2.0.3+fix_Notifications_plugin.patch" added.

Reply all
Reply to author
Forward
0 new messages