mgmonteleone / python-atlasapi

python package for MongoDB Atlas Cloud provider
Apache License 2.0
21 stars 22 forks source link

"Value is none." logged unnecessarily #173

Closed ajdavis closed 1 year ago

ajdavis commented 1 year ago

AtlasMeasurementValue has code to handle null values from the Atlas API, but it nevertheless will try to execute float(value) even when value is None. If there were an else here we would see fewer "Value is none." messages:

https://github.com/mgmonteleone/python-atlasapi/blob/master/atlasapi/measurements.py#L251