From 4cdbd3c4f2ceb09661296e28daa4101cb47fe93e Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 29 Sep 2014 11:58:48 +0200 Subject: [PATCH] dont fail if removing file fails --- pandora_incoming.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pandora_incoming.py b/pandora_incoming.py index 8ca55a0..c479919 100755 --- a/pandora_incoming.py +++ b/pandora_incoming.py @@ -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'