[Twisted-Python] formatting a CopiedFailure for GUI display

Chris Armstrong radix at twistedmatrix.com
Sun Sep 21 08:11:54 EDT 2003

On Sun, Sep 21, 2003 at 03:03:37AM -0500, Eric Mangold wrote:
> When dealing with normal Failure instances, a simple str(aFailure.value) will 
> produce an acceptably short error message.  However, a CopiedFailure's value 
> attr is "".  str(aCopiedFailure) is the whole giant traceback, unsuitable for 
> a gui message box.

CopiedFailure probably doesn't have that information available separately.
It's written such that in the serialization side, it just sends the string
traceback rather than all the frames, etc, but I must've missed sending the
actual exception message separately. You can report a bug on the tracker and
assign it to me, but I encourage you to try to patch it, as I've been
swamped lately :)

 Twisted | Christopher Armstrong: International Man of Twistery
  Radix  |          Release Manager,  Twisted Project
---------+     http://twistedmatrix.com/users/radix.twistd/

More information about the Twisted-Python mailing list