Bug 12403

Summary: In async services, exception passed to async error callback is assumed to have been thrown
Product: dbus Reporter: Simon McVittie <smcv>
Component: pythonAssignee: Simon McVittie <smcv>
Status: RESOLVED FIXED QA Contact: John (J5) Palmieri <johnp>
Severity: normal    
Priority: high    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: wrap traceback call in try/except block

Description Simon McVittie 2007-09-12 05:43:55 UTC
The implementation of asynchronous services assumes that the exception passed to the error callback was thrown and is still the current exception, and tries to pull out a traceback. This means that this:

async_err_cb(SomeError('oops'))

won't work.
Comment 1 John (J5) Palmieri 2007-09-12 08:35:02 UTC
Created attachment 11529 [details]
wrap traceback call in try/except block

Seems like this is an easy fix though I guess stringafying the exception may be superfluous,
Comment 2 Simon McVittie 2007-09-27 11:59:50 UTC
Fixed in 0.82.3 with a different patch.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.