python3 fixes and patches

This commit is contained in:
Kaan Soral
2024-02-06 23:38:44 +03:00
parent c9c28e7be6
commit 889e3b2ac2
12 changed files with 69 additions and 22 deletions
+9 -1
View File
@@ -61,7 +61,15 @@ def serve_executor_post():
output="executor_task triggered"
else:
try:
exec(the_code)
if 1/2!=0:
ld={}
exec(the_code,globals(),ld)
output=ld.get("output",output)
json_output=ld.get("json_output",json_output)
html_output=ld.get("html_output",html_output)
output_html=ld.get("output_html",output_html)
inspect=ld.get("inspect",inspect)
else: exec(the_code)
except DeadlineExceededError: logging.error("Deadline Exceeded")
except:
log_trace_i("",logging)