Skip to content

Commit bc05ae5

Browse files
committed
fix: modular import of influxdb modules
1 parent 396a4e8 commit bc05ae5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

powerapi/database/influxdb.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,13 @@
3131
import logging
3232
try:
3333
from influxdb import InfluxDBClient
34+
from requests.exceptions import ConnectionError
3435
except ImportError:
3536
logging.getLogger().info("influx-client is not installed.")
3637

3738
from typing import List
3839

39-
from requests.exceptions import ConnectionError
40+
4041
from powerapi.database import BaseDB, DBError
4142

4243
from powerapi.report import Report

0 commit comments

Comments
 (0)