dont fail if removing file fails

This commit is contained in:
j 2014-09-29 11:58:48 +02:00
parent 9cab726ec5
commit 4cdbd3c4f2
1 changed files with 4 additions and 1 deletions

View File

@ -97,7 +97,10 @@ class Incoming(object):
# remove file after successfull upload
if r:
os.unlink(f)
try:
os.unlink(f)
except:
pass
else:
print f, 'failed'