bugfix
This commit is contained in:
parent
2e46489537
commit
051c7dbd99
@ -141,7 +141,13 @@ class UAPI:
|
|||||||
ns = self.env.copy()
|
ns = self.env.copy()
|
||||||
ns.update(params)
|
ns.update(params)
|
||||||
te = self.env.tmpl_engine
|
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={}):
|
async def get_uapis(self, sor, upappid, apiname, callerid, params={}):
|
||||||
self.env.update(params)
|
self.env.update(params)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user