ibid.utils creates empty etrees

Bug #524660 reported by Stefano Rivera
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ibid
Fix Released
Medium
Stefano Rivera
html5lib
Unknown
Unknown

Bug Description

Query: exchange 20 zar for gbp
ERROR:scripts.ibid-plugin:Exception occured in Currency processor of conversions plugin
Traceback (most recent call last):
  File "scripts/ibid-plugin", line 129, in <module>
    processor.process(event)
  File "./ibid/plugins/__init__.py", line 119, in process
    method(event, *match.groups())
  File "./ibid/plugins/conversions.py", line 368, in exchange
    self._load_currencies()
  File "./ibid/plugins/conversions.py", line 305, in _load_currencies
    tbl_main = [x for x in etree.getiterator('table') if x.get('class') == 'tbl_main'][0]
AttributeError: 'NoneType' object has no attribute 'getiterator'
WARNING:plugins.unicode:Found a non-unicode string: exception
Response: That didn't seem to agree with me

Related branches

summary: - XE.com reformat broke currency lookup
+ ibid.utils creates empty etrees
Revision history for this message
Stefano Rivera (stefanor) wrote :

This appears to be a result of html5lib 0.90.

Changed in ibid:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.