diff --git a/lmfdb/groups/abstract/main.py b/lmfdb/groups/abstract/main.py
index 7701f2e40f..ce1315d803 100644
--- a/lmfdb/groups/abstract/main.py
+++ b/lmfdb/groups/abstract/main.py
@@ -2521,12 +2521,11 @@ def cc_data(gp, label, typ="complex", representative=None):
ans += "
Representative: id"
else:
gp_value = WebAbstractGroup(gp)
- if gp_value.representations.get("Lie"):
- if gp_value.representations["Lie"][0]["family"][0] == "P" and gp_value.order < 2000: #Problem with projective lie groups of order <2000
- pass
- else:
- repn = gp_value.decode(wacc.representative, as_str=True)
- ans += "
Representative: {}".format("$" + repn + "$")
+ if gp_value.representations.get("Lie") and gp_value.representations["Lie"][0]["family"][0] == "P" and gp_value.order < 2000: #Problem with projective lie groups of order <2000
+ pass
+ else:
+ repn = gp_value.decode(wacc.representative, as_str=True)
+ ans += "
Representative: {}".format("$" + repn + "$")
return Markup(ans)