From 8775731643fbbd274ebc14714abb60d609bd9219 Mon Sep 17 00:00:00 2001 From: Marcin Koziej Date: Thu, 9 Aug 2012 17:17:01 +0200 Subject: [PATCH] filter empty admin emails --- apps/oai/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/oai/handlers.py b/apps/oai/handlers.py index d098a64ad..70e78c5fb 100644 --- a/apps/oai/handlers.py +++ b/apps/oai/handlers.py @@ -59,7 +59,7 @@ class Catalogue(common.ResumptionOAIPMH): earliest_change or earliest_delete # admins - self.admin_emails = [u.email for u in User.objects.filter(is_superuser=True)] + self.admin_emails = [u.email for u in User.objects.filter(is_superuser=True).exclude(email__exact=u'')] def metadata(self, book): xml = etree.parse(book.xml_file) -- 2.20.1