Fix crash due to missing request.endpoint

This commit is contained in:
rubenwardy 2022-01-12 16:47:39 +00:00
parent fbadb05037
commit 3af5fccd61

@ -47,6 +47,9 @@ def url_set_anchor(anchor):
return url_for(request.endpoint, **dargs) + "#" + anchor
def url_set_query(**kwargs):
if request.endpoint is None:
return None
args = MultiDict(request.args)
for key, value in kwargs.items():