Skip to content

Commit

Permalink
use fullerror, but never setted true ;-)
Browse files Browse the repository at this point in the history
  • Loading branch information
manatlan committed Jun 3, 2024
1 parent 176e44a commit 7875597
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion htagweb/hrprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import asyncio
import importlib
import inspect
import traceback
from htag import Tag
from htag.render import HRenderer
import aiofiles
Expand Down Expand Up @@ -139,7 +140,12 @@ def destroy():
try:
c["response"]=await cmd(**c)
except Exception as e:
c["err"]=str(e) #TODO: full error here ?
if hasattr( sys, "hr") and sys.hr and sys.hr.fullerror:
#TODO: as is (see runner), fullerror is always false
err=traceback.format_exc()
else:
err=str(e)
c["err"]=err

# Envoyer la réponse au client
await fifo_out.write(json.dumps(c) + '\n')
Expand Down

0 comments on commit 7875597

Please sign in to comment.