pod - KeyError while processing particular ods file

Bug #1173301 reported by David Burke
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Appy
Fix Released
Undecided
Unassigned

Bug Description

See attached file.

Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  115. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/decorators.py" in _wrapped_view
  25. return view_func(request, *args, **kwargs)
File "/home/david/Dropbox/Projects/django-sis/ecwsp/grades/views.py" in teacher_grade_download
  246. return replace_spreadsheet(template_path, filename, data, type)
File "/home/david/Dropbox/Projects/django-sis/ecwsp/sis/uno_report.py" in replace_spreadsheet
  116. return report.pod_save(infile, ext=".ods")
File "/home/david/Dropbox/Projects/django-sis/ecwsp/sis/template_report.py" in pod_save
  54. renderer.run()
File "/home/david/Dropbox/Projects/django-sis/appy/pod/renderer.py" in run
  387. self.currentParser.parse(self.contentXml)
File "/home/david/Dropbox/Projects/django-sis/appy/shared/xml_parser.py" in parse
  245. self.parser.parse(inputSource)
File "/usr/lib/python2.7/xml/sax/expatreader.py" in parse
  107. xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.7/xml/sax/xmlreader.py" in parse
  123. self.feed(buffer)
File "/usr/lib/python2.7/xml/sax/expatreader.py" in feed
  207. self._parser.Parse(data, isFinal)
File "/usr/lib/python2.7/xml/sax/expatreader.py" in start_element
  301. self._cont_handler.startElement(name, AttributesImpl(attrs))
File "/home/david/Dropbox/Projects/django-sis/appy/pod/pod_parser.py" in startElement
  251. (attrs[e.tags['value-type']] == 'string') and \
File "/usr/lib/python2.7/xml/sax/xmlreader.py" in __getitem__
  316. return self._attrs[name]

Exception Type: KeyError at /grades/teacher_grade/download/395/
Exception Value: u'office:value-type'

Revision history for this message
David Burke (bufke) wrote :
Changed in appy:
status: New → Fix Committed
Changed in appy:
status: Fix Committed → Fix Released
milestone: none → 0.8.4
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.