From b3e2f5302686bb680cb1ecfd93eed3f67a6f388c Mon Sep 17 00:00:00 2001 From: Julen Landa Alustiza Date: Dec 03 2019 21:03:23 +0000 Subject: check group existence before using it --- diff --git a/pagure/ui/app.py b/pagure/ui/app.py index 697c148..b4b3306 100644 --- a/pagure/ui/app.py +++ b/pagure/ui/app.py @@ -218,7 +218,7 @@ def userdash_projects(): access = repoaccess grouplist = [] for group in groups: - if repo in group.projects: + if group and repo in group.projects: thegroup = {"group_name": "", "access": ""} thegroup["group_name"] = group.group_name for a in repo.contributor_groups: