Spaces:
Sleeping
Sleeping
j
commited on
Commit
·
843d438
1
Parent(s):
a1d9d40
inhibit tempfile removal for unsuccessful JSON handling, for debugging only
Browse files
reascripts/ReaSpeech/source/ReaSpeechWorker.lua
CHANGED
@@ -299,9 +299,6 @@ function ReaSpeechWorker:handle_response_json(output_file, sentinel_file, succes
|
|
299 |
return
|
300 |
end
|
301 |
|
302 |
-
Tempfile:remove(output_file)
|
303 |
-
Tempfile:remove(sentinel_file)
|
304 |
-
|
305 |
if http_status ~= 200 then
|
306 |
local msg = "Server responded with status " .. http_status
|
307 |
fail_f(msg)
|
@@ -322,7 +319,11 @@ function ReaSpeechWorker:handle_response_json(output_file, sentinel_file, succes
|
|
322 |
success_f(response)
|
323 |
else
|
324 |
fail_f("Error parsing response JSON")
|
|
|
325 |
end
|
|
|
|
|
|
|
326 |
end
|
327 |
|
328 |
function ReaSpeechWorker:check_active_job_request_output_file()
|
|
|
299 |
return
|
300 |
end
|
301 |
|
|
|
|
|
|
|
302 |
if http_status ~= 200 then
|
303 |
local msg = "Server responded with status " .. http_status
|
304 |
fail_f(msg)
|
|
|
319 |
success_f(response)
|
320 |
else
|
321 |
fail_f("Error parsing response JSON")
|
322 |
+
return
|
323 |
end
|
324 |
+
-- moved tempfile removal to only successful responses, for debugging purposes only!
|
325 |
+
Tempfile:remove(output_file)
|
326 |
+
Tempfile:remove(sentinel_file)
|
327 |
end
|
328 |
|
329 |
function ReaSpeechWorker:check_active_job_request_output_file()
|