From 261c18fe38be545eeb095b19e1bab7c9d1730fb3 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 17 Jan 2025 17:59:40 +0800 Subject: [PATCH] bugfix --- sqlor/sor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sqlor/sor.py b/sqlor/sor.py index 3003584..09e0f20 100755 --- a/sqlor/sor.py +++ b/sqlor/sor.py @@ -14,7 +14,7 @@ from appPublic.myTE import MyTemplateEngine from appPublic.objectAction import ObjectAction from appPublic.argsConvert import ArgsConvert,ConditionConvert from appPublic.registerfunction import RegisterFunction -from appPublic.log import info +from appPublic.log import info, exception, debug from .filter import DBFilter def db_type_2_py_type(o): @@ -235,8 +235,8 @@ class SQLor(object): return cursor.execute(markedSQL,datas) except Exception as e: - print( "markedSQL=",markedSQL,':',datas,':',e) - print_exc() + fe = format_exc() + exception( f"{markedSQL=},{datas=}, {e=}, {fe=}') raise e def maskingSQL(self,org_sql,NS):