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.
Traceback (most recent call last):
File "test.py", line 21, in <module>
client.write_points(json_body)
AttributeError: 'NoneType' object has no attribute 'write_points'
Looking at the source, the __enter__ function does not return any object, just a pass:
With #816 support for context managers has been added to InfluxDBClient. I am currently trying to use it, but it seems not to work:
It fails, as client is
None:Looking at the source, the
__enter__function does not return any object, just a pass:influxdb-python/influxdb/client.py
Lines 172 to 174 in 28a3098
Should this not return the client object, e.g.:
Or am I incorrectly using the context manager with influxdb?