KeyError: 'comment'

Bug #920551 reported by Leo Arias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad Results
Fix Released
Critical
Marc Tardif

Bug Description

I was trying to send a results file, and got the:
KeyError: 'comment'

This was after the authentication with launchpad.

I'm using precise.

elopio@tangamandapio:~/.cache/checkbox$ results2launchpad --service-root=http://results-tracker.ubuntu.com/+api ubuntuone-windows-installer $HOME/.cache/checkbox/submission.xml
The authorization page:
 (http://results-tracker.ubuntu.com/+authorize-token?oauth_token=Gm28HdqcJdm3FTBzrCpX&allow_permission=DESKTOP_INTEGRATION)
should be opening in your browser. Use your browser to authorize
this program to access Launchpad on your behalf.
Press any key to continue or wait (5) seconds...
Waiting to hear from Launchpad about your decision...
Process Process-11:
Traceback (most recent call last):
  File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/bin/results2launchpad", line 92, in processMessages
    self.handleFilename(test_run_factory, filename)
  File "/usr/bin/results2launchpad", line 102, in handleFilename
    self.handleFile(test_run_factory, file)
  File "/usr/bin/results2launchpad", line 110, in handleFile
    test_run_factory, project=self.project, series=self.series)
  File "/usr/lib/python2.7/dist-packages/lpresults/xunit/protocols/checkbox.py", line 488, in run
    self.parseRoot(result, root)
  File "/usr/lib/python2.7/dist-packages/lpresults/xunit/protocols/checkbox.py", line 473, in parseRoot
    parser(result, child)
  File "/usr/lib/python2.7/dist-packages/lpresults/xunit/protocols/checkbox.py", line 418, in parseQuestions
    result.addQuestion(question)
  File "/usr/lib/python2.7/dist-packages/lpresults/xunit/protocols/checkbox.py", line 149, in addQuestion
    output=question["comment"],
KeyError: 'comment'

Aaron Bentley (abentley)
Changed in launchpad-results:
status: New → Triaged
importance: Undecided → Critical
Revision history for this message
Marc Tardif (cr3) wrote :

The latest package contains the fix for this bug. Thanks for the report!

Changed in launchpad-results:
status: Triaged → Fix Released
assignee: nobody → Marc Tardif (cr3)
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.