#2039: torrentmanager.py line 1023, in on_alert_tracker_warning -
UnicodeDecodeError
---------------------+------------------------------------------------------
Reporter: non7top | Owner:
Type: bug | Status: new
Priority: minor | Milestone: 1.4.0
Component: core | Version: git master
Keywords: |
---------------------+------------------------------------------------------
Comment(by Cas):
Where did `\xe5` come from? That is a unicode byte but that test is using
it in an ascii string so it is bound to fail with UnicodeDecodeError.
If it just the non-ascii character you are testing then it would either
be:
{{{
s = u'String with \xe5'
tracker_status = '%s: %s' % (u"Warning", s)
}}}
or
{{{
s = 'String with \xc3\xa5'
tracker_status = '%s: %s' % (u"Warning", s.decode('utf8'))
}}}
The latter being the correct example for what we expect from libtorrent.
--
Ticket URL: <http://dev.deluge-torrent.org/ticket/2039#comment:6>
Deluge <http://deluge-torrent.org/>
Deluge project
--
You received this message because you are subscribed to the Google Groups
"Deluge Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/deluge-dev?hl=en.