py-lp-bugs fails to parse infotables
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:/
"Checked at ['/home/
Traceback (most recent call last):
File "./bughelper", line 200, in <module>
main()
File "./bughelper", line 148, in main
info_file = files.get_
File "/home/
if fget : fget = lambda s, n=fget.__name__ : getattr(s, n)()
File "/home/
x = a.infotable.current
File "/home/
if fget : fget = lambda s, n=fget.__name__ : getattr(s, n)()
File "/home/
x.parse()
File "/home/
assert type, "Wrong XPath-Expr in InfoTable.parse() 'type' (%s)" %(DEBUG_URL or "unknown")
AssertionError: Wrong XPath-Expr in InfoTable.parse() 'type' (https:/
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