py-lp-bugs fails to parse infotables

Bug #138235 reported by Markus Korn
2
Affects Status Importance Assigned to Milestone
python-launchpad-bugs
Fix Released
Undecided
Markus Korn

Bug Description

From: <email address hidden>
To: <email address hidden>
Subject: bughelper-server: 2007-09-07 22:04:46, 154 WARNING failed to process '<unknown source>, (description: bugs in ubuntu with no package)'
Date: Sat, 08 Sep 2007 12:00:09 +0200

2007-09-07 22:04:46,154 WARNING failed to process '<unknown source>, (description: bugs in ubuntu with no package)'
Commandline: ['./bughelper', '--url', 'https://bugs.launchpad.net/ubuntu/+bugs?field.has_no_package=on', '-AH', '--verbose', '2', '--format', 'html']
"Checked at ['/home/daniel/.bughelper/packages/ubuntu.info'] - no clues found. Check README on how to create one using the bugxml(1) command."
Traceback (most recent call last):
  File "./bughelper", line 200, in <module>
    main()
  File "./bughelper", line 148, in main
    info_file = files.get_info_file(b.sourcepackage, cl.options.verbose)
  File "/home/daniel/bzr/bughelper.main/launchpadbugs/bugbase.py", line 17, in <lambda>
    if fget : fget = lambda s, n=fget.__name__ : getattr(s, n)()
  File "/home/daniel/bzr/bughelper.main/launchpadbugs/html_bug.py", line 128, in f
    x = a.infotable.current
  File "/home/daniel/bzr/bughelper.main/launchpadbugs/bugbase.py", line 17, in <lambda>
    if fget : fget = lambda s, n=fget.__name__ : getattr(s, n)()
  File "/home/daniel/bzr/bughelper.main/launchpadbugs/html_bug.py", line 161, in func
    x.parse()
  File "/home/daniel/bzr/bughelper.main/launchpadbugs/html_bug.py", line 497, in parse
    assert type, "Wrong XPath-Expr in InfoTable.parse() 'type' (%s)" %(DEBUG_URL or "unknown")
AssertionError: Wrong XPath-Expr in InfoTable.parse() 'type' (https://bugs.launchpad.net/ubuntu/+bug/105881)

Revision history for this message
Markus Korn (thekorn) wrote :

This patch against .main r44 fixes this issue. It assumes that info-rows which are targeted to a milestone could have no "Project/Package"-field.
I could not find another bugreport besides Bug 105881 which matches this case, so I only tested it with this bug, and it worked.

Markus

Changed in python-launchpad-bugs:
status: New → Fix Committed
Revision history for this message
Daniel Holbach (dholbach) wrote :

Markus: thanks a lot! Uploaded.

Changed in python-launchpad-bugs:
assignee: nobody → thekorn
status: Fix Committed → 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.