mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-26 03:29:24 -05:00
Don't 500 if a group is missing from the regex
This commit is contained in:
parent
65e69dec8b
commit
a7dcbfe430
@ -207,7 +207,7 @@ class JsonResource(HttpServer, resource.Resource):
|
||||
incoming_requests_counter.inc(request.method, servlet_classname)
|
||||
|
||||
args = [
|
||||
urllib.unquote(u).decode("UTF-8") for u in m.groups()
|
||||
urllib.unquote(u).decode("UTF-8") if u else u for u in m.groups()
|
||||
]
|
||||
|
||||
callback_return = yield callback(request, *args)
|
||||
|
Loading…
Reference in New Issue
Block a user