Comment 3 for bug 102160

Revision history for this message
Andrew Bennetts (spiv) wrote :

James: good point. If only python had chained exceptions....

"raise PropertyFailedError(e)" should probably also capture the traceback (using sys.exc_info()), not just the original exception instance, and pass that to PropertyFailedError. So, pretend I said "raise PropertyFailedError(sys.exc_info())" :)

It was just a sketch to give the idea; and as Tim points out my original version would already be an improvement over what the builtin property does in this situation.