mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 12:04:51 +00:00
another unicode tracker fix
This commit is contained in:
parent
cd49b329f6
commit
6dd304ee63
1 changed files with 6 additions and 2 deletions
|
@ -742,11 +742,15 @@ likely the tracker did not responsd in utf-8."
|
|||
|
||||
elif event['event_type'] is self.constants['EVENT_TRACKER_WARNING']:
|
||||
# Probably will need proper formatting later, not tested yet
|
||||
tracker_status = '%s: %s' % (_("Warning"), event["message"])
|
||||
try:
|
||||
tracker_status = '%s: %s' % (_("Warning"), event["message"])
|
||||
|
||||
self.set_supp_torrent_state_val(event['unique_ID'],
|
||||
self.set_supp_torrent_state_val(event['unique_ID'],
|
||||
"tracker_status",
|
||||
tracker_status)
|
||||
except UnicodeDecodeError:
|
||||
print "There was a problem displaying a tracker alert. Most\
|
||||
likely the tracker did not responsd in utf-8."
|
||||
|
||||
return ret
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue