This commit is contained in:
yumoqing 2026-04-02 15:25:10 +08:00
parent 2e46489537
commit 051c7dbd99

View File

@ -141,7 +141,13 @@ class UAPI:
ns = self.env.copy()
ns.update(params)
te = self.env.tmpl_engine
return await te.renders(tmplstr, ns)
try:
ret = await te.renders(tmplstr, ns)
return ret
except Exception as e:
e = Exception(f'{e}:{tmplstr=}, {ns=}')
exception(f'{e}')
raise e
async def get_uapis(self, sor, upappid, apiname, callerid, params={}):
self.env.update(params)