8000 Merge pull request #283 from adrianlzt/feature/fix_decode_for_python26 · asmodehn/influxdb-python@22b8abc · GitHub
[go: up one dir, main page]

Skip to content

Commit 22b8abc

Browse files
committed
Merge pull request influxdata#283 from adrianlzt/feature/fix_decode_for_python26
Python 2.6 does not support keyword arguments in decode (Thanks @adrianlzt !)
2 parents 3c16b16 + 77bc4c7 commit 22b8abc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

influxdb/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ class InfluxDBClientError(Exception):
22
"""Raised when an error occurs in the request."""
33
def __init__(self, content, code=None):
44
if isinstance(content, type(b'')):
5-
content = content.decode('UTF-8', errors='replace')
5+
content = content.decode('UTF-8', 'replace')
66

77
if code is not None:
88
message = "%s: %s" % (code, content)

0 commit comments

Comments
 (0)
0