Skip to content

Commit 18706df

Browse files
author
steenzout
committed
fixed error message and fixed another case.
1 parent ca0a61b commit 18706df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

influxdb/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ def write_points_with_precision(self, data, time_precision='s'):
8383
"""
8484
Write to multiple time series names
8585
"""
86-
if time_precision not in ['s', 'm', 'u']:
86+
if time_precision not in ['s', 'm', 'ms', 'u']:
8787
raise Exception(
88-
"Invalid time precision is given. (use 's','m' or 'u')")
88+
"Invalid time precision is given. (use 's', 'm', 'ms' or 'u')")
8989

9090
url_format = "{0}/db/{1}/series?u={2}&p={3}&time_precision={4}"
9191

@@ -164,7 +164,7 @@ def query(self, query, time_precision='s', chunked=False):
164164
"""
165165
if time_precision not in ['s', 'm', 'ms', 'u']:
166166
raise Exception(
167-
"Invalid time precision is given. (use 's','m' or 'u')")
167+
"Invalid time precision is given. (use 's', 'm', 'ms' or 'u')")
168168

169169
if chunked is True:
170170
chunked_param = 'true'

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