mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 13:23:18 -07:00
Stop hang on result check. Fix #185
This commit is contained in:
parent
28fac1c1b9
commit
0371036177
1 changed files with 5 additions and 4 deletions
|
@ -299,13 +299,14 @@ def external_script(outputDestination):
|
|||
res = p.wait()
|
||||
if str(res) in user_script_successCodes: # Linux returns 0 for successful.
|
||||
Logger.info("UserScript %s was successfull", command[0])
|
||||
result = int(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)
|
||||
result = 1
|
||||
result = int(1)
|
||||
except:
|
||||
Logger.exception("UserScript %s has failed", command[0])
|
||||
result = 1
|
||||
result = int(1)
|
||||
final_result = final_result + result
|
||||
|
||||
time.sleep(user_delay)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue