diff options
Diffstat (limited to 'libbe/bug.py')
-rw-r--r-- | libbe/bug.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libbe/bug.py b/libbe/bug.py index f562836..7cf1bf8 100644 --- a/libbe/bug.py +++ b/libbe/bug.py @@ -405,7 +405,9 @@ class Bug (settings_object.SavedSettingsObject): text = settings_object.EMPTY else: text = xml.sax.saxutils.unescape(child.text) - text = text.decode('unicode_escape').strip() + if not isinstance(text, unicode): + text = text.decode('unicode_escape') + text = text.strip() if child.tag == 'uuid' and not preserve_uuids: uuid = text continue # don't set the bug's uuid tag. |