Skip to content

Instantly share code, notes, and snippets.

@codemation
Created November 15, 2021 11:59
Show Gist options
  • Save codemation/8dfe4e38470737949a01e82763ac3d58 to your computer and use it in GitHub Desktop.
Save codemation/8dfe4e38470737949a01e82763ac3d58 to your computer and use it in GitHub Desktop.
pydbantic_app_8.log
Traceback (most recent call last):
File "/home/josh/python/pydbantic/docs/medium/application/app.py", line 27, in <module>
asyncio.run(main())
File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/home/josh/python/pydbantic/docs/medium/application/app.py", line 23, in main
all_employees = await Employee.all()
File "/home/josh/python/pydbantic/docs/medium/med-env/lib/python3.9/site-packages/pydbantic/core.py", line 401, in all
return await cls.select('*')
File "/home/josh/python/pydbantic/docs/medium/med-env/lib/python3.9/site-packages/pydbantic/core.py", line 395, in select
cls(**values)
File "pydantic/main.py", line 406, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for Employee
position
none is not an allowed value (type=type_error.none.not_allowed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment