Merge branch 'hotfix/v4.26'
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user