From 6f54bab6bc6a84eb1935f7ac23754afb751e3535 Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Tue, 5 Mar 2013 19:19:30 -0800 Subject: [PATCH] exit case for failed download --- autoProcessMusic.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoProcessMusic.py b/autoProcessMusic.py index 4977f379..04fe8d24 100644 --- a/autoProcessMusic.py +++ b/autoProcessMusic.py @@ -96,6 +96,10 @@ def process(dirName, nzbName=None, status=0): else: Logger.error("%s has NOT started on HeadPhones for %s. Exiting", command, nzbName) return 1 # failure + + else: + Logger.info("The download failed. Nothing to process") + return 0 # Success (as far as this script is concerned) if nzbName == "Manual Run": return 0 # success