mirror of
https://github.com/janeczku/calibre-web
synced 2025-11-09 03:33:02 +00:00
Code cosmetics
This commit is contained in:
@@ -508,7 +508,6 @@ def create_anonymous_user():
|
||||
session.commit()
|
||||
except Exception:
|
||||
session.rollback()
|
||||
pass
|
||||
|
||||
|
||||
# Generate User admin with admin123 password, and access to everything
|
||||
@@ -525,7 +524,7 @@ def create_admin_user():
|
||||
session.add(user)
|
||||
try:
|
||||
session.commit()
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
session.rollback()
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user