Opened 4 years ago

Closed 19 months ago

Last modified 19 months ago

#4659 enhancement closed duplicate (duplicate)

twisted.web._newclient._WrapperException makes it a little tedious to debug

Reported by: djfroofy Owned by:
Priority: low Milestone:
Component: web Keywords:
Cc: Branch:
Author: Launchpad Bug:

Description (last modified by glyph)

Getting a traceback (e.g. reason.printTraceback) with _WrapperException leads to something inscrutable. Example:

Unhandled Error
        Traceback (most recent call last):
        Failure: twisted.web._newclient.RequestGenerationFailed: [<twisted.python.failure.Failure <type 'exceptions.AttributeError'>>]

I don't know if it's possible but it would be nice to somehow get a meaningful traceback without having to introspect the exception type and doing stuff like:

for reason in reason.value.reasons:
    reason.printTraceback()

Change History (5)

comment:1 Changed 4 years ago by <automation>

  • Owner exarkun deleted

comment:2 Changed 3 years ago by glyph

  • Description modified (diff)

(fixing formatting)

comment:3 Changed 3 years ago by glyph

#5345 is related to this.

comment:4 Changed 19 months ago by therve

  • Resolution set to duplicate
  • Status changed from new to closed

comment:5 Changed 19 months ago by therve

Closed in favor of #5310.

Note: See TracTickets for help on using tickets.