From d22c6601394dd56aa349b04edb1f569de6b0c5ef Mon Sep 17 00:00:00 2001 From: dbrennand <52419383+dbrennand@users.noreply.github.com> Date: Sun, 25 Aug 2024 18:36:55 +0100 Subject: [PATCH] fix: lint with black --- speeder.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/speeder.py b/speeder.py index c69537f..43b455a 100644 --- a/speeder.py +++ b/speeder.py @@ -21,6 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + from influxdb_client.client.write_api import SYNCHRONOUS from influxdb_client import InfluxDBClient from loguru import logger @@ -93,7 +94,9 @@ json_result = json.loads(result.stdout) # Check if the JSON result is empty if not json_result: - raise json.decoder.JSONDecodeError("JSON result is empty.", json_result, 0) + raise json.decoder.JSONDecodeError( + "JSON result is empty.", json_result, 0 + ) except json.decoder.JSONDecodeError as err: logger.error( f"Failed to parse JSON results for server ID: {server_id}.\nError: {err}"