aboutsummaryrefslogtreecommitdiff
path: root/manager.py
diff options
context:
space:
mode:
Diffstat (limited to 'manager.py')
-rwxr-xr-xmanager.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/manager.py b/manager.py
index 2ecdeffc..fcb5d0c5 100755
--- a/manager.py
+++ b/manager.py
@@ -39,8 +39,11 @@ def db_create():
"pwdhash": generate_password_hash(os.environ.get("ADMIN_PASSWORD", "password")),
}
with application.app_context():
- db.create_all()
- UserController(ignore_context=True).create(**admin)
+ try:
+ db.create_all()
+ UserController(ignore_context=True).create(**admin)
+ except Exception as e:
+ print(e)
@manager.command
bgstack15