From 84e32e15541491c2d8aeaf629a9292d2204c5189 Mon Sep 17 00:00:00 2001 From: Corentin Chary Date: Thu, 21 Nov 2013 10:28:22 +0100 Subject: [PATCH] processing: fix scan_metadata.py when the new maintainer name is None --- euscanwww/djeuscan/processing/scan/scan_metadata.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/euscanwww/djeuscan/processing/scan/scan_metadata.py b/euscanwww/djeuscan/processing/scan/scan_metadata.py index e817f0b..22bad3f 100644 --- a/euscanwww/djeuscan/processing/scan/scan_metadata.py +++ b/euscanwww/djeuscan/processing/scan/scan_metadata.py @@ -136,11 +136,13 @@ class ScanMetadata(object): for maintainer in pkg.maintainers.all(): email = maintainer.email + name = maintainer.name if email in old_maintainers: pkg.maintainers.remove(maintainer) if (email in maintainers and - email == maintainer.name and - maintainers[email].name != maintainer.name): + email == name and + maintainers[email].name != name and + maintainers[email].name): maintainer.name = maintainers[email].name maintainer.save()