Skip to content

Commit 03d39ec

Browse files
committed
Fix bug. create_database returns 201.
1 parent 97082ca commit 03d39ec

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
@@ -68,7 +68,7 @@ def create_database(self, database):
6868
data=json.dumps({'name': database}),
6969
headers=self._headers)
7070

71-
if response.status_code == 200:
71+
if response.status_code == 201:
7272
return True
7373
else:
7474
raise Exception(response.content)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy