You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 29, 2024. It is now read-only.
fix: Calling commit and _json_body make raising an exception when any datapoints are not added. (#772)
* If any SerialHelper is not generated, calling the commit function makes raising an exception because _datapoints is not allocated.
It is hard to find the reason of this error. it is because reviewing influxdb-python's code is needed.
I think that it is important that is producing predictable results. Results when calling first time is needed to equal to calling resetting datapoints in json_body.
So, I've fixed that if not initialized when calling _json_body() function, _datapoints is reset to avoid raising error.
In Unittest, the setup function is added. When calling setup function firstly, __initialized__ is False and _datapoints is not assigned. But, because of this commit, it is OK.
Contacts: Keunhyun Oh <keunhyun.oh@ahnlab.com>
* fix build fail
Contacts: Keunhyun Oh <keunhyun.oh@ahnlab.com>
* fix build fail
Contacts: Keunhyun Oh <keunhyun.oh@ahnlab.com>
* fix build fail
Contacts: Keunhyun Oh <keunhyun.oh@ahnlab.com>
* Update helper_test.py
* Update helper_test.py
* Update helper_test.py
0 commit comments