Skip to content

Commit

Permalink
[bugzilla] Use dont_decode in web.get
Browse files Browse the repository at this point in the history
lxml refuses to parse unicode strings if the string contains an encoding
decleration. This means the bugzilla module has been broken since the
introduction of the decoding capability of web.get and nobody noticed.

This commit fixes that issue.
  • Loading branch information
Elad Alfassa committed Aug 16, 2014
1 parent 73582c8 commit 27086b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bugzilla.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def show_bug(bot, trigger, match=None):
if domain not in bot.config.bugzilla.get_list('domains'):
return
url = 'https://%s%sctype=xml&%s' % match.groups()
data = web.get(url)
data = web.get(url, dont_decode=True)
bug = etree.fromstring(data).find('bug')

message = ('[BUGZILLA] %s | Product: %s | Component: %s | Version: %s | ' +
Expand Down

0 comments on commit 27086b1

Please sign in to comment.