mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Fix crash due to missing request.endpoint
This commit is contained in:
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():
|
||||
|
Loading…
Reference in New Issue
Block a user