Skip to content

Conversation

rauchy
Copy link
Contributor

@rauchy rauchy commented Dec 24, 2019

What type of PR is this? (check all applicable)

  • Bug Fix

Description

BaseException.message has been deprecated as of Python 2.6 and is removed in Python 3. Use str(e) to access the user-readable message. Use e.args to access arguments passed to the exception.

Related Tickets & Documents

#4181

… as of Python 2.6 and is removed in Python 3. Use str(e) to access the user-readable message. Use e.args to access arguments passed to the exception.
@rauchy rauchy requested a review from arikfr December 24, 2019 21:33
@arikfr arikfr merged commit e7eedd0 into master Dec 25, 2019
@arikfr arikfr deleted the use-str-on-exceptions branch December 25, 2019 08:51
jezdez pushed a commit to mozilla/redash that referenced this pull request Feb 5, 2020
… as of Python 2.6 and is removed in Python 3. Use str(e) to access the user-readable message. Use e.args to access arguments passed to the exception. (getredash#4482)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants