From f6735219f0e8559c3ab263279feea054988792d8 Mon Sep 17 00:00:00 2001 From: Andrew Zhao Date: Mon, 6 Nov 2017 13:52:26 -0800 Subject: [PATCH] Fix keyError from pop (#407) Remind me not to ever merge anything ever again --- nyaa/template_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nyaa/template_utils.py b/nyaa/template_utils.py index 9555d03..3fc11fa 100644 --- a/nyaa/template_utils.py +++ b/nyaa/template_utils.py @@ -66,7 +66,7 @@ def static_cachebuster(filename): def modify_query(**new_values): args = flask.request.args.copy() - args.pop('p') + args.pop('p', None) for key, value in new_values.items(): args[key] = value