Compare commits

..

2 Commits

Author SHA1 Message Date
yumoqing
78d4d2a452 Merge branch 'main' of git.opencomputing.cn:yumoqing/xls2ddl 2026-03-12 21:54:37 +08:00
yumoqing
3314588773 bugfix 2026-03-12 21:54:28 +08:00

View File

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