From: Ricardo Dias Date: Tue, 15 Oct 2019 12:10:22 +0000 (+0100) Subject: mgr/dashboard: home: fix python2 failure in regex processing X-Git-Tag: v15.1.0~1234^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cb2d982b7eec86f21f9314f897f1ff09652c2b8d;p=ceph-ci.git mgr/dashboard: home: fix python2 failure in regex processing Signed-off-by: Ricardo Dias --- 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()