Skip to content

Commit eeb9949

Browse files
sasha-scalegatli
andauthored
none value for float is ok (#329)
* none value for float is ok * implement a better way by also catching type errors * Bump and CHANGELOG Co-authored-by: Gunnar Atli Thoroddsen <gunnar.thoroddsen@scale.com>
1 parent 0440ead commit eeb9949

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to the [Nucleus Python Client](https://github.com/scaleapi/n
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.14.9](https://github.com/scaleapi/nucleus-python-client/releases/tag/v0.14.9) - 2022-07-14
9+
10+
### Fixed
11+
- NoneType errors in Validate
12+
813
## [0.14.8](https://github.com/scaleapi/nucleus-python-client/releases/tag/v0.14.8) - 2022-07-14
914

1015
### Fixed

nucleus/validate/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
def try_convert_float(float_str: str) -> Optional[float]:
55
try:
66
return float(float_str)
7-
except ValueError:
7+
except (ValueError, TypeError):
88
return None

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ exclude = '''
2121

2222
[tool.poetry]
2323
name = "scale-nucleus"
24-
version = "0.14.8"
24+
version = "0.14.9"
2525
description = "The official Python client library for Nucleus, the Data Platform for AI"
2626
license = "MIT"
2727
authors = ["Scale AI Nucleus Team <nucleusapi@scaleapi.com>"]

0 commit comments

Comments
 (0)