From cb2d982b7eec86f21f9314f897f1ff09652c2b8d Mon Sep 17 00:00:00 2001 From: Ricardo Dias Date: Tue, 15 Oct 2019 13:10:22 +0100 Subject: [PATCH] mgr/dashboard: home: fix python2 failure in regex processing Signed-off-by: Ricardo Dias --- src/pybind/mgr/dashboard/controllers/home.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/controllers/home.py b/src/pybind/mgr/dashboard/controllers/home.py index 19f3005bbd3..038b68d9674 100644 --- a/src/pybind/mgr/dashboard/controllers/home.py +++ b/src/pybind/mgr/dashboard/controllers/home.py @@ -52,7 +52,7 @@ class HomeController(BaseController): logger.debug("reached max accepted languages, skipping remaining") break - tag_match = self.LANG_TAG_RE.match(m[1]) + tag_match = self.LANG_TAG_RE.match(m.group(1)) if tag_match is None: raise cherrypy.HTTPError(400, "Malformed 'Accept-Language' header") locale = tag_match.group('locale').lower() -- 2.39.5