Made the shortened url route return a 404 error for not found tokens

This commit is contained in:
xemeds
2020-07-20 18:14:55 +00:00
parent b6ed78c8ad
commit c091efe84d
2 changed files with 2 additions and 1 deletions
BIN
View File
Binary file not shown.
+2 -1
View File
@@ -36,7 +36,8 @@ def short_url(token):
# If the query response was empty
if not query:
return "invalid"
# Return the error page with a 404 not found error
return render_template("error.html", error_message="404 Not Found"), 404
# Else if the query response contained data
else: