From 051c7dbd996b849d8d225d41277c6734f29667dd Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 2 Apr 2026 15:25:10 +0800 Subject: [PATCH] bugfix --- uapi/appapi.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/uapi/appapi.py b/uapi/appapi.py index b792be2..69d6dee 100644 --- a/uapi/appapi.py +++ b/uapi/appapi.py @@ -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)