diff options
author | 2013-11-21 10:28:22 +0100 | |
---|---|---|
committer | 2013-11-21 10:28:22 +0100 | |
commit | 84e32e15541491c2d8aeaf629a9292d2204c5189 (patch) | |
tree | 67e569d6f704807ff065d04bd157ab50d29696dd | |
parent | fixes (diff) | |
download | euscan-84e32e15541491c2d8aeaf629a9292d2204c5189.tar.gz euscan-84e32e15541491c2d8aeaf629a9292d2204c5189.tar.bz2 euscan-84e32e15541491c2d8aeaf629a9292d2204c5189.zip |
processing: fix scan_metadata.py when the new maintainer name is None
-rw-r--r-- | euscanwww/djeuscan/processing/scan/scan_metadata.py | 6 |
1 files 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() |