Fix mistakes
This commit is contained in:
@@ -76,7 +76,7 @@ def error(code) -> str:
|
|||||||
if not code.isdigit():
|
if not code.isdigit():
|
||||||
code=400
|
code=400
|
||||||
elif code not in error_definitions:
|
elif code not in error_definitions:
|
||||||
return Response(code)
|
return Response(status=code)
|
||||||
|
|
||||||
return render_template('error.html',
|
return render_template('error.html',
|
||||||
error=f'{code}: {error_definitions.get(int(code))}',
|
error=f'{code}: {error_definitions.get(int(code))}',
|
||||||
|
Reference in New Issue
Block a user