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

Fix #828 "Context manager for InfluxDBClient not working correctly?" #831

Merged
merged 1 commit into from
Apr 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion influxdb/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def __init__(self,

def __enter__(self):
"""Enter function as used by context manager."""
pass
return self

def __exit__(self, _exc_type, _exc_value, _traceback):
"""Exit function as used by context manager."""
Expand Down