upgraded environments

This commit is contained in:
Saifeddine ALOUI
2024-01-11 23:14:30 +01:00
parent 674afc9593
commit 3540a83145
13 changed files with 66 additions and 139 deletions

View File

@ -61,6 +61,7 @@ def execute_latex(code, discussion_id, message_id):
except subprocess.CalledProcessError as ex:
lollmsElfServer.error(f"Error occurred while compiling LaTeX: {ex}")
execution_time = time.time() - start_time
error_json = {"output": "<div class='text-red-500'>"+str(ex)+"\n"+get_trace_exception(ex)+"</div>", "execution_time": execution_time}
return error_json