aboutsummaryrefslogtreecommitdiffstats
path: root/bin/update
diff options
context:
space:
mode:
authorbwarsaw <>2004-02-29 03:43:45 +0000
committerbwarsaw <>2004-02-29 03:43:45 +0000
commit8a01c503b91069541513d2cd90318a9967939924 (patch)
treed68a1e9e6693ed26a77e3103c9dc155c09bbac2c /bin/update
parent7ec7716fffbc8b05bb15c340eeca856a00c15ff7 (diff)
downloadmailman2-8a01c503b91069541513d2cd90318a9967939924.tar.gz
mailman2-8a01c503b91069541513d2cd90318a9967939924.tar.xz
mailman2-8a01c503b91069541513d2cd90318a9967939924.zip
update_pending(): Return immediately if the pending db has already been update
or otherwise doesn't exist.
Diffstat (limited to 'bin/update')
-rwxr-xr-xbin/update3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/update b/bin/update
index ea803f7f..1a1e5e3d 100755
--- a/bin/update
+++ b/bin/update
@@ -548,6 +548,9 @@ def update_pending():
else:
print _('Updating Mailman 2.1.4 pending.pck database')
db = cPickle.load(fp)
+ if db is None:
+ print _('Nothing to do.')
+ return
# Now upgrade the database to the 2.1.5 format. Each list now has its own
# pending.pck file, but only the RE_ENABLE operation actually recorded the
# listname in the request. For the SUBSCRIPTION, UNSUBSCRIPTION, and