mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-06 16:44:29 +00:00
add comment to tracker_error_alert handler
This commit is contained in:
parent
01ee181607
commit
d9ce4ff634
@ -1013,6 +1013,8 @@ class TorrentManager(component.Component):
|
|||||||
"""Alert handler for libtorrent tracker_error_alert"""
|
"""Alert handler for libtorrent tracker_error_alert"""
|
||||||
error_message = decode_string(alert.msg)
|
error_message = decode_string(alert.msg)
|
||||||
if not error_message:
|
if not error_message:
|
||||||
|
# alert.msg empty for '-1' code so fallback to a.e.message(), alert.msg cannot be replaced
|
||||||
|
# by a.e.message() because with non '-1' codes, the code is in the message.
|
||||||
error_message = decode_string(alert.error.message())
|
error_message = decode_string(alert.error.message())
|
||||||
log.debug("Tracker Error Alert: %s [%s]", decode_string(alert.message()), error_message)
|
log.debug("Tracker Error Alert: %s [%s]", decode_string(alert.message()), error_message)
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user