diff --git a/app/utils/flask.py b/app/utils/flask.py index 9307ed2..47d4f3d 100644 --- a/app/utils/flask.py +++ b/app/utils/flask.py @@ -65,7 +65,8 @@ def url_set_query(**kwargs): dargs = dict(args.lists()) - dargs.update(request.view_args) + if request.view_args: + dargs.update(request.view_args) return url_for(request.endpoint, **dargs)