Private
Public Access
1
0

email processing fix

This commit is contained in:
Sander Roosendaal
2017-10-15 08:43:40 +02:00
parent 41a29335f9
commit 253fd1261d

View File

@@ -139,10 +139,12 @@ class Command(BaseCommand):
except: except:
pass pass
try:
a.delete()
except IOError:
pass
# remove attachment # remove attachment
if donotdelete == 0: #if donotdelete == 0:
a.delete()
if m.attachments.exists()==False: if m.attachments.exists()==False:
# no attachments, so can be deleted # no attachments, so can be deleted