Package: python-debianbts
Version: 1.6
Severity: normal

Hello,
I just found another couple of bugs where get_bug_log() fails:

In [1]: import debianbts as bts

In [2]: b = bts.get_bug_log('578363')
---------------------------------------------------------------------------
UnicodeDecodeError                        Traceback (most recent call last)

/home/morph/deb/tmp/python-debianbts-1.6/src/<ipython console> in <module>()

/home/morph/deb/tmp/python-debianbts-1.6/src/debianbts.pyc in get_bug_log(nr)
    160     for b in buglog:
    161         b["header"] = unicode(b["header"], 'utf-8')
--> 162         b["body"] = unicode(b["body"], 'utf-8')
    163         b["msg_num"] = int(b["msg_num"])
    164         b["attachments"] = b["attachments"]._aslist()

UnicodeDecodeError: 'utf8' codec can't decode byte 0xf3 in position 257: 
invalid continuation byte

In [3]: b = bts.get_bug_log('570825')
---------------------------------------------------------------------------
UnicodeDecodeError                        Traceback (most recent call last)

/home/morph/deb/tmp/python-debianbts-1.6/src/<ipython console> in <module>()

/home/morph/deb/tmp/python-debianbts-1.6/src/debianbts.pyc in get_bug_log(nr)
    160     for b in buglog:
    161         b["header"] = unicode(b["header"], 'utf-8')
--> 162         b["body"] = unicode(b["body"], 'utf-8')
    163         b["msg_num"] = int(b["msg_num"])
    164         b["attachments"] = b["attachments"]._aslist()

UnicodeDecodeError: 'utf8' codec can't decode byte 0xe4 in position 44: invalid 
continuation byte

[4] 

Regards,
Sandro

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.34-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-debianbts depends on:
ii  python                        2.6.5-10   interactive high-level object-orie
ii  python-soappy                 0.12.0-4   SOAP Support for Python
ii  python-support                1.0.9      automated rebuilding support for P

python-debianbts recommends no packages.

python-debianbts suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to