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

Commit 3de06c1

Browse files
committed
Fix: switch_db would cause infinite recursion
1 parent 6623491 commit 3de06c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

influxdb/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def switch_db(self, database):
122122
"in future versions. Please use "
123123
"``InfluxDBClient.switch_database(database)`` instead.",
124124
FutureWarning)
125-
return self.switch_db(database)
125+
return self.switch_database(database)
126126

127127
def switch_user(self, username, password):
128128
"""

0 commit comments

Comments
 (0)