Skip to content

Commit 77bc4c7

Browse files
committed
Python 2.6 does not support keyword arguments in decode
http://docs.python.org/library/stdtypes.html#str.decode Changed in version 2.7: Support for keyword arguments added.
1 parent 3c16b16 commit 77bc4c7

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)