From ef19a91ecd1e773763536bb52b8c798f7533f464 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 14 Feb 2024 12:29:51 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- easyverein/core/client.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/easyverein/core/client.py b/easyverein/core/client.py index 4f143e0..8e019da 100644 --- a/easyverein/core/client.py +++ b/easyverein/core/client.py @@ -5,8 +5,8 @@ import logging from pathlib import Path -from typing import TYPE_CHECKING, Any, TypeVar from time import sleep +from typing import TYPE_CHECKING, Any, TypeVar import requests from pydantic import BaseModel @@ -123,9 +123,11 @@ def _do_request( # noqa: PLR0913 self.logger.warning("Sleeping %d seconds", retry_after) sleep(retry_after) if files: - for k,v in files: + for k, v in files: v.seek(0) - return self._do_request(method, url, binary, data, headers, files, retry=False) + return self._do_request( + method, url, binary, data, headers, files, retry=False + ) else: raise EasyvereinAPITooManyRetriesException( f"Too many requests, please wait {retry_after} seconds and try again.",