Commit e41b6aff authored by Ozzie Isaacs's avatar Ozzie Isaacs Committed by GitHub

Merge pull request #102 from janeczku/fix-db-init

Fix typo; raise exception when creating database
parents 63379fe5 8d9ed568
......@@ -419,7 +419,7 @@ def create_admin_user():
user.nickname = "admin"
user.role = ROLE_USER + ROLE_ADMIN + ROLE_DOWNLOAD + ROLE_UPLOAD + ROLE_EDIT + ROLE_PASSWD
user.sidebar_view = DETAIL_RANDOM + SIDEBAR_LANGUAGE + SIDEBAR_SERIES + SIDEBAR_CATEGORY + SIDEBAR_HOT + \
SIDEBAR_RANDOM + SIDEBAR_AUTHOR + SIEDBAR_BEST_RATED
SIDEBAR_RANDOM + SIDEBAR_AUTHOR + SIDEBAR_BEST_RATED
user.password = generate_password_hash(DEFAULT_PASS)
......@@ -444,7 +444,7 @@ if not os.path.exists(dbpath):
create_admin_user()
create_anonymous_user()
except Exception:
pass
raise
else:
migrate_Database()
......
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