summaryrefslogtreecommitdiff
path: root/src/mailman/app/lifecycle.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/mailman/app/lifecycle.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mailman/app/lifecycle.py b/src/mailman/app/lifecycle.py
index 051b7cec3..ff087a874 100644
--- a/src/mailman/app/lifecycle.py
+++ b/src/mailman/app/lifecycle.py
@@ -101,7 +101,9 @@ def remove_list(fqdn_listname, mailing_list=None, archives=True):
])
# Now that we know what files and directories to delete, delete them.
for target in removeables:
- if os.path.islink(target):
+ if not os.path.exists(target):
+ pass
+ elif os.path.islink(target):
os.unlink(target)
elif os.path.isdir(target):
shutil.rmtree(target)