From 0cf947a0e4121e337bf00b2cc91e0136a9c64fe9 Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Wed, 13 Nov 2013 14:21:56 +1030 Subject: [PATCH] fixed error preventing running of script. fixes #201 --- TorrentToMedia.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TorrentToMedia.py b/TorrentToMedia.py index 281d229f..cb67547c 100755 --- a/TorrentToMedia.py +++ b/TorrentToMedia.py @@ -291,11 +291,11 @@ def external_script(outputDestination): try: p = Popen(command) res = p.wait() - if res in user_script_successCodes: Linux returns 0 for successful. + if res in user_script_successCodes: # Linux returns 0 for successful. Logger.info("UserScript %s was successfull", command[0]) else: Logger.error("UserScript %s has failed with return code: %s", command[0], res) - Logger.info("If the UserScript completed successfully you should add "%s" to the user_script_successCodes", res) + Logger.info("If the UserScript completed successfully you should add %s to the user_script_successCodes", res) result = 1 except: Logger.exception("UserScript %s has failed", command[0])