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
|
# remove file after successfull upload
|
||||||
if r:
|
if r:
|
||||||
|
try:
|
||||||
os.unlink(f)
|
os.unlink(f)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
print f, 'failed'
|
print f, 'failed'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue