summaryrefslogtreecommitdiff
path: root/src/mailman/app/digests.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/app/digests.py')
-rw-r--r--src/mailman/app/digests.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mailman/app/digests.py b/src/mailman/app/digests.py
index b66a4c54c..2190fdf98 100644
--- a/src/mailman/app/digests.py
+++ b/src/mailman/app/digests.py
@@ -28,9 +28,7 @@ import os
from mailman.config import config
from mailman.email.message import Message
from mailman.interfaces.digests import DigestFrequency
-from mailman.interfaces.listmanager import IListManager
from mailman.utilities.datetime import now as right_now
-from zope.component import getUtility
@@ -95,7 +93,10 @@ def maybe_send_digest_now(mlist, force=False):
# us exactly how big the resulting MIME and rfc1153 digest will
# actually be, but it's the most easily available metric to decide
# whether the size threshold has been reached.
- size = os.path.getsize(mailbox_path)
+ try:
+ size = os.path.getsize(mailbox_path)
+ except FileNotFoundError:
+ size = 0
if (size >= mlist.digest_size_threshold * 1024.0 or
(force and size > 0)):
# Send the digest. Because we don't want to hold up this process