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
It causes my app that use SQLite to crash with ModuleNotFoundError: No module named 'asyncpg'
One possible solution is to wrap it in try-except ModuleNotFoundError block, another - refactor check in Model.extract_prefixed_table_columns. Your thoughts?
It seems that tests are running with all backends and those kind of errors are not catched
The text was updated successfully, but these errors were encountered:
Currently in model.py Record is imported without checks in place whether user even have
asyncpg
installed:ormar/ormar/models/model.py
Line 5 in 250f55a
It causes my app that use SQLite to crash with
ModuleNotFoundError: No module named 'asyncpg'
One possible solution is to wrap it in
try-except ModuleNotFoundError
block, another - refactor check inModel.extract_prefixed_table_columns
. Your thoughts?It seems that tests are running with all backends and those kind of errors are not catched
The text was updated successfully, but these errors were encountered: