Compare commits
2 Commits
c6739a3a53
...
78d4d2a452
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
78d4d2a452 | ||
|
|
3314588773 |
@ -26,7 +26,11 @@ def xls2ddl(xlsfile,dbtype):
|
||||
data = None
|
||||
if xlsfile.endswith('.json'):
|
||||
with codecs.open(xlsfile,'r','utf-8') as 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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user