getrandbits creates an int, not a float
This commit is contained in:
parent
aaf1b23e98
commit
4d1792db1c
1 changed files with 2 additions and 2 deletions
|
@ -148,9 +148,9 @@ class UserAuthentication(object):
|
||||||
from app import app
|
from app import app
|
||||||
app_secret_key = app.config['SECRET_KEY']
|
app_secret_key = app.config['SECRET_KEY']
|
||||||
|
|
||||||
# First try parsing the key as a float.
|
# First try parsing the key as an int.
|
||||||
try:
|
try:
|
||||||
secret_key = float(app_secret_key)
|
secret_key = int(app_secret_key)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
secret_key = app_secret_key
|
secret_key = app_secret_key
|
||||||
|
|
||||||
|
|
Reference in a new issue