fix: rc/view.py
This commit is contained in:
parent
0ecc6317a5
commit
8688239b7f
|
@ -666,8 +666,10 @@ class ImpMixin:
|
||||||
new_val = val
|
new_val = val
|
||||||
elif isinstance(val, str):
|
elif isinstance(val, str):
|
||||||
try:
|
try:
|
||||||
new_val = datetime.datetime.strptime(val, '%Y-%m-%d').date()
|
new_val = datetime.datetime.strptime(val.strip(), '%Y-%m-%d').date()
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
import traceback
|
||||||
|
print(traceback.format_exc())
|
||||||
raise ParseError(f'第{ind}行, 日期时间格式错误')
|
raise ParseError(f'第{ind}行, 日期时间格式错误')
|
||||||
elif val is None:
|
elif val is None:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue