AttributeError for "__traceback__" when reporting an exception

Bug #854695 reported by Benji York on 2011-09-20
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Critical
Benji York
lazr.restful
Critical
Benji York

Bug Description

A lazr.restful change I made assumes that all exceptions have a __traceback__ attribute. Some don't (specifically LaunchpadTimeoutError manages not to), so we get these OOPSes:

181 AttributeError: 'LaunchpadTimeoutError' object has no attribute
'__traceback__'
  GET: 176 POST: 5 Robots: 0 Local: 5
    71 https://api.launchpad.net/1.0/ubuntu
(Distribution:EntryResource:searchTasks)
      OOPS-2087AO27, OOPS-2087AO29, OOPS-2087AO9, OOPS-2087AP3, OOPS-2087AQ79
    52 https://api.launchpad.net/devel/ubuntu
(Distribution:EntryResource:searchTasks)
      OOPS-2087AO28, OOPS-2087AP6, OOPS-2087AQ58, OOPS-2087AR51, OOPS-2087AS26
    47 https://api.launchpad.net/1.0/%7Eubuntu-security-sponsors
(Person:EntryResource:searchTasks)
      OOPS-2087A46, OOPS-2087AO5, OOPS-2087AO58, OOPS-2087AP15, OOPS-2087AP54

The fix is relatively simple and in-progress.

Related branches

Benji York (benji) on 2011-09-20
description: updated
Changed in lazr.restful:
status: New → In Progress
assignee: nobody → Benji York (benji)
importance: Undecided → Critical
Benji York (benji) on 2011-09-20
Changed in lazr.restful:
status: In Progress → Fix Committed
status: Fix Committed → Fix Released
William Grant (wgrant) wrote :

Any progress on this? The branch seems ready to land.

Benji York (benji) wrote :

The fix has been released for lazr.restful (as 0.19.3) but I'm having problems with PGP which have prevented me from landing the one-line change to bump the version in LP.

I'm off from work for the next couple of days so it'll take at least that long for me to get my PQM issue fixed. Feel free to update LP with the fixed lazr.restful if you want.

Benji York (benji) on 2011-10-07
Changed in launchpad:
status: In Progress → Fix Committed
Benji York (benji) on 2011-10-07
tags: added: qa-ok
William Grant (wgrant) on 2011-10-10
Changed in launchpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers