misc: small fixes

This commit is contained in:
Eldeberen 2021-02-18 00:04:28 +01:00
parent 243ae43783
commit c0bb2f5448
Signed by untrusted user: Darks
GPG Key ID: 7515644268BE1433
2 changed files with 1 additions and 1 deletions

View File

@ -144,6 +144,7 @@ def activate_account(token):
ts = URLSafeTimedSerializer(app.config["SECRET_KEY"])
email = ts.loads(token, salt="email-confirm-key", max_age=86400)
except Exception as e:
# TODO: add proper login
print(f"Error: {e}")
abort(404)

View File

@ -9,6 +9,5 @@ class API():
try:
markdown = request.get_json()['text']
except BadRequestKeyError:
return "Dummy value"
abort(400)
return str(md(markdown))