We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d49a0d6 commit 115de85Copy full SHA for 115de85
sqlmodel/main.py
@@ -508,9 +508,8 @@ def __init__(__pydantic_self__, **data: Any) -> None:
508
)
509
# Only raise errors if not a SQLModel model
510
if ((not getattr(__pydantic_self__.__config__, "table", False)
511
- or getattr(__pydantic_self__.__config__, "validate", False))
512
- and validation_error
513
- ):
+ or getattr(__pydantic_self__.__config__, "validate", False))
+ and validation_error):
514
raise validation_error
515
# Do not set values as in Pydantic, pass them through setattr, so SQLAlchemy
516
# can handle them
0 commit comments