Skip to content

Commit 2c671b0

Browse files
committed
add : 404 server handle added.
1 parent 73d3a71 commit 2c671b0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mafia.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ def index():
4747
is_farsi=True)
4848

4949

50+
@app.errorhandler(404)
51+
def invalid_route(e):
52+
return render_template("404.html", is_farsi=True)
53+
54+
5055
def help_me():
5156
usage = "-" * 70 + "\n"
5257
usage += "mafia - Web Server Application For Mafia Game Playing On Local Network \n\n"

0 commit comments

Comments
 (0)