dont fail if removing file fails
This commit is contained in:
parent
9cab726ec5
commit
4cdbd3c4f2
1 changed files with 4 additions and 1 deletions
|
@ -97,7 +97,10 @@ class Incoming(object):
|
|||
|
||||
# remove file after successfull upload
|
||||
if r:
|
||||
try:
|
||||
os.unlink(f)
|
||||
except:
|
||||
pass
|
||||
else:
|
||||
print f, 'failed'
|
||||
|
||||
|
|
Loading…
Reference in a new issue