This commit is contained in:
yumoqing 2026-03-12 21:54:28 +08:00
parent 0dcc00fbc2
commit 3314588773

View File

@ -26,7 +26,11 @@ def xls2ddl(xlsfile,dbtype):
data = None
if xlsfile.endswith('.json'):
with codecs.open(xlsfile,'r','utf-8') as f:
data = json.load(f)
try:
data = json.load(f)
except Exception as e:
print(f'{f}:error({e})')
raise e
if data is None:
print(xlsfile, 'not data return')
return