failing to parse bug attachments in text mode

Bug #210576 reported by Brian Murray on 2008-04-02
2
Affects Status Importance Assigned to Milestone
python-launchpad-bugs
Undecided
Unassigned

Bug Description

1) main 84
2) buginfo --title 202595
3)
Traceback (most recent call last):
  File "./buginfo", line 86, in <module>
    main()
  File "./buginfo", line 59, in main
    print bug.title
  File "/home/theman/source_trees/bughelper/bug-tags-20080401/launchpadbugs/lphelper.py", line 261, in <lambda>
    if fget : fget = lambda s, n=fget.__name__ : getattr(s, n)()
  File "/home/theman/source_trees/bughelper/bug-tags-20080401/launchpadbugs/text_bug.py", line 249, in get_title
    return self.__textpage["bug"].title[0]
  File "/home/theman/source_trees/bughelper/bug-tags-20080401/launchpadbugs/text_bug.py", line 145, in __getitem__
    self.parse()
  File "/home/theman/source_trees/bughelper/bug-tags-20080401/launchpadbugs/text_bug.py", line 190, in parse
    assert len(x) == 2, "wrong line:%s" %l
AssertionError: wrong line: x-unix-mode=0644;

This is most likely really an issue with Malone which I've reported as bug 210571, but it might be worth working around.

Markus Korn (thekorn) wrote :

Hi Brian,
I agree, this is more an issue in Malone. I'm afraid fixing this in the current version of text_bug.py is not possible without changing large parts of the parser, which I think we should not do for just a workaround, so it's "Won't Fix" IMHO. I hope that's Ok for you.
For hardy+1 I plan to rewrite (simplify) the parser (Bug 202262). I committed a simple workaround to the attached branch there.

Markus

Changed in python-launchpad-bugs:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers