Skip to content

Conversation

@harmon
Copy link

@harmon harmon commented Oct 11, 2014

... and the python property swallowed the exception raised in my authenticator.

…led and the python property swallowed the exception raised in my authenticator.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can still keep the existing traceback which will be useful for debugging by using six.reraise. I think it would look like:

six.reraise(RuntimeError, "AttributeError: " + str(error), sys.exc_info()[2])

And error.message is not available in Python 3. You should use the str(error) instead.

@lovelydinosaur
Copy link
Contributor

Looks like this needs updating to latest master.

@lovelydinosaur
Copy link
Contributor

Superseeded by #2530, which includes your test. Thanks for your work on this! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants