Skip to content

Commit 89e4e30

Browse files
committed
Handles the case that a non-float or integer string is given.
This patch fixes #140. Contributors: * @spirillen
1 parent e76bc51 commit 89e4e30

File tree

1 file changed

+1
-1
lines changed
  • PyFunceble/dataset/whois

1 file changed

+1
-1
lines changed

PyFunceble/dataset/whois/csv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def get_content(self) -> Generator[Optional[dict], None, None]:
9797
for row in super().get_content():
9898
try:
9999
row["epoch"] = float(row["epoch"])
100-
except TypeError:
100+
except (TypeError, ValueError):
101101
continue
102102

103103
yield row

0 commit comments

Comments
 (0)