diff --git a/templates/index.mako b/templates/index.mako index 6efcd41af37ba26e492575e3468e03b26d877ddf..d2b84b5c0a8a1ae606bc749deb05834a4920723b 100644 --- a/templates/index.mako +++ b/templates/index.mako @@ -161,8 +161,9 @@ escape_filename(test))) else: raw = res.tests.get(grouptools.groupname(test)) - if raw is not None: - result = raw.subtests[grouptools.testname(test)] + name = grouptools.testname(test) + if raw is not None and name in raw.subtests: + result = raw.subtests[name] href = normalize_href(posixpath.join(escape_pathname(res.name), escape_filename(grouptools.groupname(test)))) else: