From 34357280beaa2cd09ff9c452c220b0610eb28300 Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Sat, 23 Mar 2013 14:11:48 -0700 Subject: [PATCH] add safety for delete_failed --- autoProcess/autoProcessMovie.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoProcess/autoProcessMovie.py b/autoProcess/autoProcessMovie.py index 3098a1c4..accd55ff 100644 --- a/autoProcess/autoProcessMovie.py +++ b/autoProcess/autoProcessMovie.py @@ -220,7 +220,7 @@ def process(dirName, nzbName=None, status=0): Logger.info("%s", line) Logger.info("Movie %s set to try the next best release on CouchPotatoServer", movie_id) - if delete_failed: + if delete_failed and not dirName in ['sys.argv[0]','/','']: Logger.info("Deleting failed files and folder %s", dirName) try: shutil.rmtree(dirName)