From 7f96df5e60322012c14e1e8d61b41d55e4760acf Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Sat, 3 May 2014 20:09:21 +0930 Subject: [PATCH] fix fork check #367 --- nzbtomedia/nzbToMediaAutoFork.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/nzbtomedia/nzbToMediaAutoFork.py b/nzbtomedia/nzbToMediaAutoFork.py index e57b0fe5..fed68889 100644 --- a/nzbtomedia/nzbToMediaAutoFork.py +++ b/nzbtomedia/nzbToMediaAutoFork.py @@ -53,13 +53,12 @@ def autoFork(section, inputCategory): try: r = requests.get(url, headers=headers, stream=True, verify=False) except requests.ConnectionError: - logger.info("Could not connect to %s:%s to verify fork!" % (section, inputCategory)) - break + logger.warning("Could not connect to %s:%s to verify fork!" % (section, inputCategory)) - if r.ok: - fork = ['default', {}] - else: - logger.info("Connection to %s:%s failed! Check your configuration" % (section, inputCategory)) + if not r.ok: + logger.warning("Connection to %s:%s failed! Check your configuration" % (section, inputCategory)) + + fork = ['default', {}] elif fork == "auto": logger.info("Attempting to auto-detect %s fork" % inputCategory)