fix(salary): skip Excel logical cells instead of importing them as numbers (#664)

* fix(salary): skip Excel logical cells instead of importing numbers

* test: skip Excel CLI case when openpyxl is unavailable

* changelog: place the #664 entry under [Unreleased]

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Mads Lorentzen <madslorentzen_17@hotmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
authored and GitHub committed 2026-10-20 21:02:24 +02:00
1 parent 2aadb070f4
commit 4339153f8f
3 files changed
+62

No files matched your search

+2
View File
@@ -68,6 +68,8 @@ def _finite_float(value):
def parse_numeric_cell(value):
"""Parse numeric Excel values, including localized string cells."""
if isinstance(value, bool):
raise ValueError("not numeric")
if isinstance(value, (int, float)):
return _finite_float(value)
if not isinstance(value, str):