Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not log exception info twice #6916

Merged
merged 1 commit into from Oct 24, 2018

Conversation

nsoranzo
Copy link
Member

logging.exception() already adds the the exception information after the supplied message.

Also: the message attribute of Exception class has been dropped in Python 3, always use str(e).

xref. #1715

`logging.exception()` already adds the the exception information after
the supplied message.

Also: the `message` attribute of `Exception` class has been dropped in
Python 3, always use `str(e)`.

xref. galaxyproject#1715
@mvdbeek mvdbeek merged commit 210cdc9 into galaxyproject:dev Oct 24, 2018
@mvdbeek
Copy link
Member

mvdbeek commented Oct 24, 2018

Thanks @nsoranzo !

@nsoranzo nsoranzo deleted the fix_exception_logging branch October 24, 2018 13:55
@nsoranzo nsoranzo added the area/python3 Specific to Python 3 label May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants