Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Conversation

ocworld
Copy link
Contributor

@ocworld ocworld commented Dec 3, 2019

If any SeriesHelper is not generated, calling the commit function makes raising exception because _datapoints is None.

It is hard to find the reason of this error. it is because reviewing influxdb-python's code is needed.

So, I've fixed that if _datapoints is None in the commit function, _datapoints is set to defaultdict to avoid raising error.


Contributor checklist
  • Builds are passing
  • New tests have been added (for feature additions)
    => it is not feature addition but covering an exception.

…es raising exception because _datapoints is None.

It is hard to find the reason of this error. it is because reviewing influxdb-python's code is needed.

So, I've fixed that if _datapoints is None in the commit function, _datapoints is set to defaultdict to avoid raising error.
@ocworld
Copy link
Contributor Author

ocworld commented Dec 3, 2019

I'll request this pull request again with small changes.

@ocworld ocworld deleted the empty-commit-raise-exception-none branch December 4, 2019 14:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant