You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you run this code you obviously expect a validation error like this: ValidationError: 1 validation error for Test
But when you run this you get a misleading exception when using pretty exceptions.
You get something like: [Errno 2] No such file or directory: 'C:\\xxxxx\\pydantic\\main.py'. This can be misleading when you have bigger tracebacks and you are working with unknown tools.
When you set pretty_exceptions_enable to false such error doesn't get printed.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
First Check
Commit to Help
Example Code
Description
When you run this code you obviously expect a validation error like this:
ValidationError: 1 validation error for Test
But when you run this you get a misleading exception when using pretty exceptions.
You get something like:
[Errno 2] No such file or directory: 'C:\\xxxxx\\pydantic\\main.py'
. This can be misleading when you have bigger tracebacks and you are working with unknown tools.When you
set pretty_exceptions_enable
tofalse
such error doesn't get printed.Operating System
Linux, Windows
Operating System Details
No response
Typer Version
0.6.1
Python Version
3.11
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions