Open cc-jdurbin opened 1 year ago
Update: I was able to resolve this by slightly modifying readxl_scrape
:
if cell_val > 2958465:
dt = EXCEL_STARTDATE + timedelta(2958465)
else:
dt = EXCEL_STARTDATE + timedelta(cell_val)
Where 2958465 is the maximum value that doesn't cause an OverflowError. I don't know enough to understand if this is a robust solution, but it works for my use case.
Pylightxl Version: 1.61 Python Version: 3.10.9
Summary of Bug/Feature:
readxl_scrape
fails on line 536 whencell_val
is 8445481.Traceback:
Suggestion for fix:
An option to let
readxl_scrape
quietly fail and insert a blank value would work for my specific use case. Alternatively, an option to not parse date values at all would work. Developers can take care of fancier date parsing after the call toreadxl
.