Skip to content

Commit 44f5131

Browse files
author
Paul V Craven
committed
Update for tests
1 parent d5ed569 commit 44f5131

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

optimizely/helpers/validator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,9 @@ def is_finite_number(value: Any) -> bool:
276276
if math.isnan(value) or math.isinf(value):
277277
return False
278278

279-
if isinstance(value, int):
280-
if abs(value) > (2 ** 53):
281-
return False
279+
if isinstance(value, (int, float)):
280+
if abs(value) > (2 ** 53):
281+
return False
282282

283283
return True
284284

0 commit comments

Comments
 (0)