TwythonErrors should display errors with the built-in Exception args, not its own msg #171

Closed
opened 2013-04-11 16:28:21 -07:00 by nofeet · 0 comments
nofeet commented 2013-04-11 16:28:21 -07:00 (Migrated from github.com)

Sentry, our team's error logging platform, does not prominently display the error message whenever a TwythonError is raised. I believe it is happening because Twython's Exception classes set and use self.msg but Sentry is calling repl() which returns self.args.

It would be better if the TwythonErrors used the parent Exception's attributes and str() method.

More information about this at http://www.python.org/dev/peps/pep-0352/.

Sentry, our team's error logging platform, does not prominently display the error message whenever a `TwythonError` is raised. I believe it is happening because Twython's Exception classes set and use `self.msg` but Sentry is calling `repl()` which returns `self.args`. It would be better if the TwythonErrors used the parent Exception's attributes and str() method. More information about this at http://www.python.org/dev/peps/pep-0352/.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: code/twython#171
No description provided.