From 9510a14b905f966f2baec4381f5c2444b1adee3a Mon Sep 17 00:00:00 2001 From: Evgenii Alekseev Date: Fri, 5 Jan 2024 11:48:38 +0200 Subject: [PATCH] refactor: use root RequestException instead of the one from subpackage --- src/ahriman/core/http/sync_http_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ahriman/core/http/sync_http_client.py b/src/ahriman/core/http/sync_http_client.py index 8f2a04dd..a4551063 100644 --- a/src/ahriman/core/http/sync_http_client.py +++ b/src/ahriman/core/http/sync_http_client.py @@ -77,12 +77,12 @@ class SyncHttpClient(LazyLogging): return session @staticmethod - def exception_response_text(exception: requests.exceptions.RequestException) -> str: + def exception_response_text(exception: requests.RequestException) -> str: """ safe response exception text generation Args: - exception(requests.exceptions.RequestException): exception raised + exception(requests.RequestException): exception raised Returns: str: text of the response if it is not None and empty string otherwise