lp2kanban gets confused with bugs on disabled projects

Bug #877277 reported by Данило Шеган
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LP2Kanban
Triaged
Low
Unassigned

Bug Description

lp2kanban fails with the following exception when it hits a bug with disabled project like https://bugs.launchpad.net/oops-tools/+bug/849446

Traceback (most recent call last):
  File "src/lp2kanban/bugs2cards.py", line 334, in <module>
    main(sys.argv)
  File "src/lp2kanban/bugs2cards.py", line 329, in main
    sync_board(board, boards_config[board_name])
  File "src/lp2kanban/bugs2cards.py", line 263, in sync_board
    lp_bug, all_projects, lp_users.lp_to_kanban.keys())
  File "src/lp2kanban/bugs2cards.py", line 212, in get_bug_status
    print "#%s: %s" % (lp_bug.id, task.target)
  File "/home/danilo/rad/lp2kanban/eggs/lazr.restfulclient-0.11.2-py2.6.egg/lazr/restfulclient/resource.py", line 681, in __str__
    return self.self_link
  File "/home/danilo/rad/lp2kanban/eggs/lazr.restfulclient-0.11.2-py2.6.egg/lazr/restfulclient/resource.py", line 688, in __getattr__
    return super(Entry, self).__getattr__(name)
  File "/home/danilo/rad/lp2kanban/eggs/lazr.restfulclient-0.11.2-py2.6.egg/lazr/restfulclient/resource.py", line 331, in __getattr__
    return self.lp_get_parameter(attr)
  File "/home/danilo/rad/lp2kanban/eggs/lazr.restfulclient-0.11.2-py2.6.egg/lazr/restfulclient/resource.py", line 215, in lp_get_parameter
    self._ensure_representation()
  File "/home/danilo/rad/lp2kanban/eggs/lazr.restfulclient-0.11.2-py2.6.egg/lazr/restfulclient/resource.py", line 357, in _ensure_representation
    representation = self._root._browser.get(self._wadl_resource)
  File "/home/danilo/rad/lp2kanban/eggs/lazr.restfulclient-0.11.2-py2.6.egg/lazr/restfulclient/_browser.py", line 291, in get
    response, content = self._request(url, extra_headers=headers)
  File "/home/danilo/rad/lp2kanban/eggs/lazr.restfulclient-0.11.2-py2.6.egg/lazr/restfulclient/_browser.py", line 281, in _request
    raise error
lazr.restfulclient.errors.NotFound: HTTP Error 404: Not Found
Response headers:
---
-content-encoding: gzip
content-length: 104
content-type: text/plain
date: Tue, 18 Oct 2011 09:51:18 GMT
server: zope.server.http (HTTP)
status: 404
vary: Accept-Encoding
via: 1.1 api.launchpad.net
x-powered-by: Zope (www.zope.org), Python (www.python.org)
---
Response body:
---
Object: <canonical.launchpad.systemhomes.WebServiceApplication object at 0x92c4550>, name: u'oops-tools'
---

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.