-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Remove ExceptionInfo.__str__, falling back to __repr__ #5413
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5413 +/- ##
==========================================
- Coverage 95.98% 95.98% -0.01%
==========================================
Files 114 114
Lines 25523 25511 -12
Branches 2480 2479 -1
==========================================
- Hits 24499 24487 -12
Misses 718 718
Partials 306 306
Continue to review full report at Codecov.
|
I think having the location there is useful in general, but should come via |
You mean adding this to entry = self.traceback[-1]
loc = ReprFileLocation(entry.path, entry.lineno + 1, self.exconly()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes - or something similar. |
Adding the location gives this:
Isn't that a too long? |
Maybe, yes. But you have the exception type there twice. |
Fix #5412