further requests status checks. fixes #348 #351

This commit is contained in:
clinton-hall 2014-04-29 13:53:40 +09:30
commit 00ca156564
5 changed files with 28 additions and 9 deletions

View file

@ -158,7 +158,10 @@ class autoProcessTV:
logger.postprocess("Deleting failed files and folder %s" % (dirName),section)
rmDir(dirName)
if Success:
if not r.status_code == requests.codes.ok:
logger.error("Server returned status %s" % (str(r.status_code)), section)
return 1
elif Success:
return 0
else:
return 1
return 1 # We did not receive Success confirmation.