Skip to content

Commit 355b1a9

Browse files
author
Simon Gomizelj
committed
Fix DataFrameClient import error on python3.5
1 parent 898c4b6 commit 355b1a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

influxdb/dataframe_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@
1616
from .client import InfluxDBClient
1717

1818
class DataFrameClient(InfluxDBClient):
19+
err = err
20+
1921
def __init__(self, *a, **kw):
2022
raise ImportError("DataFrameClient requires Pandas "
21-
"which couldn't be imported: %s" % err)
23+
"which couldn't be imported: %s" % self.err)
2224
else:
2325
from ._dataframe_client import DataFrameClient

0 commit comments

Comments
 (0)