1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-12-20 23:41:20 +00:00

Exception for importing routes and models while running testDB.py

This commit is contained in:
Mo 2021-07-14 04:26:18 +02:00
parent 2d268811de
commit bb1b6a86b2

View file

@ -39,4 +39,9 @@ from advlabdb import models
user_datastore = SQLAlchemyUserDatastore(db, models.User, models.Role)
Security(app, user_datastore)
try:
from advlabdb import routes, modelViews
except Exception as ex:
print(
"\nYou are probably initializing the database with a script. If not, then you have to worry about not being able to import in __init__.py!\n"
)