diff --git a/werbinich.py b/werbinich.py index 9caa788..d6e0d0c 100644 --- a/werbinich.py +++ b/werbinich.py @@ -48,3 +48,7 @@ def name_show(gameid, player): other_players.pop(player,None) pprint(other_players) return render_template("name_show.html", current_player=player, other_players=other_players) + +@app.errorhandler(KeyError) +def not_found(error): + return "

Not Found

Object not found
home".format(url_for("create_game")), 404