Additioanl fixes regarding error catching and reporting at ATEapi related jobs

This commit is contained in:
Kikimanox
2022-12-23 18:10:00 +01:00
parent 44d4e58ec3
commit 90adc995b1
2 changed files with 4 additions and 0 deletions
@@ -448,6 +448,8 @@ def execute_ateapi_job(job: Job, sem: threading.Semaphore):
_res = do_izlusci(info['conllus'], info['prepovedane_besede'])
if type(_res) is tuple:
ret_json = _res[0]
if _res[1] != 200:
ret_json = f'ERROR - {ret_json}'
else:
try:
if type(_res.response) is dict: