fix missing torrent_id in on_alert_state_changed
This commit is contained in:
parent
cf0d155e99
commit
fb85e76a1f
|
@ -747,7 +747,8 @@ class TorrentManager(component.Component):
|
|||
def on_alert_state_changed(self, alert):
|
||||
log.debug("on_alert_state_changed")
|
||||
try:
|
||||
torrent = self.torrents[str(alert.handle.info_hash())]
|
||||
torrent_id = str(alert.handle.info_hash())
|
||||
torrent = self.torrents[torrent_id]
|
||||
except:
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in New Issue