launchpad edge changed layout, py-lp-bugs is crashing

Bug #243193 reported by Stephan Rügamer
2
Affects Status Importance Assigned to Milestone
python-launchpad-bugs
Fix Released
Undecided
Unassigned

Bug Description

Dear Colleagues,

edge changed again, and py-lp-bugs is crashing again.

I tested a patch of Markus from branch: intrepid.merge (http://bazaar.launchpad.net/~bughelper-dev/python-launchpad-bugs/intrepid.merge/revision/136) which should fix at least the bugreport issue.
But buglists are still crashing...also on stable or edge lp.

(Crash report from leonov, while it tries to fetch launchpad.net/people/+me/+<buglists>)

shermann@wz-pc-006:~/projects/leonov$ ./leonov.py -d
2008-06-26 10:03:15,906 configuration.Config._get DEBUG Debug: default.leonov_frontend does not exist.
2008-06-26 10:03:15,906 leonov.main DEBUG options.frontend = None
False
2008-06-26 10:03:16,430 leonov.backend.lpbackend.authenticateLPUsseViaCookie DEBUG Trying to log in to launchpad via cookie
2008-06-26 10:03:20,499 leonov.kde.models.bugmodel.BugListModel DEBUG fetchBugList
2008-06-26 10:03:20,499 leonov.kde.modes.MyBugListFill DEBUG QThread: lpType: 0 Username:
2008-06-26 10:03:20,502 leonov.kde.models.bugmodel.BugListModel DEBUG fetchBugList
2008-06-26 10:03:20,503 leonov.kde.modes.MyBugListFill DEBUG QThread: lpType: 1 Username:
2008-06-26 10:03:20,504 leonov.kde.models.bugmodel.BugListModel DEBUG fetchBugList
2008-06-26 10:03:20,505 leonov.kde.modes.MyBugListFill DEBUG QThread: lpType: 2 Username:
2008-06-26 10:03:20,506 leonov.kde.models.bugmodel.BugListModel DEBUG fetchBugList
2008-06-26 10:03:20,506 leonov.kde.modes.MyBugListFill DEBUG QThread: lpType: 3 Username:
Traceback (most recent call last):
  File "/home/shermann/projects/leonov/leonov/kde/models/threads/workers.py", line 35, in run
    self.bugList=self.lpbug.getMyBugList( self.lpType )
  File "/home/shermann/projects/leonov/leonov/backend/lpbackend.py", line 76, in getMyBugList
    self.lpUserBugTypes[lpType])
  File "/home/shermann/projects/leonov/leonov/backend/lpbackend.py", line 63, in _bug_list
    result = self.bugListConnector(url)
  File "/home/shermann/projects/leonov/launchpadbugs/connector.py", line 117, in __call__
    progress_hook=self.__progress_hook)
  File "/home/shermann/projects/leonov/launchpadbugs/html_buglist.py", line 192, in __init__
    BugPage, progress_hook)
  File "/home/shermann/projects/leonov/launchpadbugs/buglistbase.py", line 89, in __init__
    self._add(self.baseurl)
  File "/home/shermann/projects/leonov/launchpadbugs/buglistbase.py", line 145, in _add
    bugpage = self._fetch(url)
  File "/home/shermann/projects/leonov/launchpadbugs/buglistbase.py", line 134, in _fetch
    connection=self.__connection, all_tasks=self.__all_tasks)
  File "/home/shermann/projects/leonov/launchpadbugs/buglistbase.py", line 34, in __init__
    self.batchsize, self.length) = self.find_parse_function(connection, tested_url, all_tasks)
  File "/home/shermann/projects/leonov/launchpadbugs/html_buglist.py", line 55, in find_parse_function
    result = BugPage.parse_html_bugpage(xmldoc, all_tasks, url)
  File "/home/shermann/projects/leonov/launchpadbugs/html_buglist.py", line 101, in parse_html_bugpage
    length = re.search(r'(\d+) results', m.content).group(1)
AttributeError: 'NoneType' object has no attribute 'group'
Traceback (most recent call last):
  File "/home/shermann/projects/leonov/leonov/kde/models/threads/workers.py", line 35, in run
    self.bugList=self.lpbug.getMyBugList( self.lpType )
  File "/home/shermann/projects/leonov/leonov/backend/lpbackend.py", line 76, in getMyBugList
    self.lpUserBugTypes[lpType])
  File "/home/shermann/projects/leonov/leonov/backend/lpbackend.py", line 63, in _bug_list
    result = self.bugListConnector(url)
  File "/home/shermann/projects/leonov/launchpadbugs/connector.py", line 117, in __call__
    progress_hook=self.__progress_hook)
  File "/home/shermann/projects/leonov/launchpadbugs/html_buglist.py", line 192, in __init__
    BugPage, progress_hook)
  File "/home/shermann/projects/leonov/launchpadbugs/buglistbase.py", line 89, in __init__
    self._add(self.baseurl)
  File "/home/shermann/projects/leonov/launchpadbugs/buglistbase.py", line 145, in _add
    bugpage = self._fetch(url)
  File "/home/shermann/projects/leonov/launchpadbugs/buglistbase.py", line 134, in _fetch
    connection=self.__connection, all_tasks=self.__all_tasks)
  File "/home/shermann/projects/leonov/launchpadbugs/buglistbase.py", line 34, in __init__
    self.batchsize, self.length) = self.find_parse_function(connection, tested_url, all_tasks)
  File "/home/shermann/projects/leonov/launchpadbugs/html_buglist.py", line 55, in find_parse_function
    result = BugPage.parse_html_bugpage(xmldoc, all_tasks, url)
  File "/home/shermann/projects/leonov/launchpadbugs/html_buglist.py", line 101, in parse_html_bugpage
    length = re.search(r'(\d+) results', m.content).group(1)
AttributeError: 'NoneType' object has no attribute 'group'

Revision history for this message
Stephan Rügamer (sruegamer) wrote :

Dear Colleagues,

this is the patch for fixing this bug.

Regards,

\sh

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

fix committed to intrepid.merge, Thanks again Stephan.

Changed in python-launchpad-bugs:
status: New → Fix Committed
Revision history for this message
Markus Korn (thekorn) wrote :

fix landed in .main

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

Fix released in py-lp-bugs 0.3

Changed in python-launchpad-bugs:
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.