From 0b4b1dd5cdec0c465c2f77b135c1e5ea1bb7b97d Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Mon, 15 Apr 2013 16:19:40 +0930 Subject: [PATCH] fix wake = 0 and return --- autoProcess/nzbToMediaUtil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoProcess/nzbToMediaUtil.py b/autoProcess/nzbToMediaUtil.py index 3de90a2e..fb2bb802 100644 --- a/autoProcess/nzbToMediaUtil.py +++ b/autoProcess/nzbToMediaUtil.py @@ -253,10 +253,10 @@ def WakeUp(): if not os.path.isfile(configFilename): Logger.error("You need an autoProcessMedia.cfg file - did you rename and edit the .sample?") - return 1 # failure + return config.read(configFilename) - wake = config.get("WakeOnLan", "wake") + wake = int(config.get("WakeOnLan", "wake")) if wake == 0: # just return if we don't need to wake anything. return Logger.info("Loading WakeOnLan config from %s", configFilename)