Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 75c036d

Browse files
committed
Test Log
1 parent 2c1b8a6 commit 75c036d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎api/index.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,10 @@ def internal_error(error):
4343
app.logger.error(f"Server Error: {error}, Route: {request.url}")
4444
return "500 error: Internal Server Error", 500
4545

46+
@app.errorhandler(404)
47+
def not_found_error(error):
48+
app.logger.error(f"Page Not Found: {error}, Route: {request.url}")
49+
return "404 error: Page Not Found", 404
50+
4651
if __name__ == '__main__':
4752
app.run(debug=True)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /