From a7dcbfe430f31a6e9fc6b5920ddff39eb1b1e3b4 Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Mon, 6 Jul 2015 16:47:17 +0100 Subject: [PATCH] Don't 500 if a group is missing from the regex --- synapse/http/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/http/server.py b/synapse/http/server.py index 807ff95c65..b60e905a62 100644 --- a/synapse/http/server.py +++ b/synapse/http/server.py @@ -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)