#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