Fix migration script and LGTM

This commit is contained in:
Khanh Ngo
2019-12-21 22:26:56 +07:00
parent 7739bf7cfc
commit 4bdd433079
5 changed files with 10 additions and 10 deletions

View File

@ -13,6 +13,7 @@ def confirm_token(token, expiration=86400):
email = serializer.loads(token,
salt=current_app.config['SALT'],
max_age=expiration)
except:
except Exception as e:
current_app.logger.debug(e)
return False
return email