sbz codec: error with extra fields

Bug #609075 reported by Olivier Berten on 2010-07-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SwatchBooker
Undecided
Unassigned

Bug Description

Traceback (most recent call last):
  File "/usr/lib/swatchbooker/swatchbooker.pyw", line 1899, in run
    self.parent().sb = SwatchBook(self.fname)
  File "/usr/lib/python2.6/dist-packages/swatchbook/__init__.py", line 196, in __init__
    self.read(file,codec)
  File "/usr/lib/python2.6/dist-packages/swatchbook/__init__.py", line 245, in read
    eval('codecs.'+codec).read(self,file)
  File "/usr/lib/python2.6/dist-packages/swatchbook/codecs/sbz.py", line 62, in read
    sbz.readmaterial(material,swatchbook)
  File "/usr/lib/python2.6/dist-packages/swatchbook/codecs/sbz.py", line 120, in readmaterial
    sbz.sitem.extra[xmlunescape(elem.attrib['type'])] = xmlunescape(elem.text)
AttributeError: type object 'sbz' has no attribute 'sitem'

Related branches

Changed in swatchbooker:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers