Replies: 1 comment
-
Can't reproduce this:
It was probably fixed somewhere. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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