Skip to content
New issue

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

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

Already on GitHub? # to your account

custom errors that do not display traceback #407

Closed
edublancas opened this issue Apr 13, 2023 · 1 comment · Fixed by #422
Closed

custom errors that do not display traceback #407

edublancas opened this issue Apr 13, 2023 · 1 comment · Fixed by #422
Assignees

Comments

@edublancas
Copy link

In some cases, we need to raise errors where showing the internal traceback isn't helpful to the user. So far, we've been using UsageError. However, it doesn't fit all situations and we'd like to customize it with more descriptive names. Unfortunately, subclassing UsageError doesn't work:

image

So we need to find out a way to tell IPython not to display the traceback for certain exceptions

@edublancas edublancas mentioned this issue Apr 13, 2023
4 tasks
@edublancas
Copy link
Author

Update: I found the root cause and opened an issue in the IPython repo (ipython/ipython#14024)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant