Commit 1e2a6f2f authored by janeczku's avatar janeczku

Fix session.rollback on admin account creation

parent 3719b7e4
......@@ -183,7 +183,11 @@ def create_admin_user():
user.password = generate_password_hash(DEFAULT_PASS)
session.add(user)
session.commit()
try:
session.commit()
except:
session.rollback()
pass
Session = sessionmaker()
Session.configure(bind=engine)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment