mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-28 09:17:17 +00:00
refactor: use root RequestException instead of the one from subpackage
This commit is contained in:
parent
6eeef39fe5
commit
9510a14b90
@ -77,12 +77,12 @@ class SyncHttpClient(LazyLogging):
|
|||||||
return session
|
return session
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def exception_response_text(exception: requests.exceptions.RequestException) -> str:
|
def exception_response_text(exception: requests.RequestException) -> str:
|
||||||
"""
|
"""
|
||||||
safe response exception text generation
|
safe response exception text generation
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
exception(requests.exceptions.RequestException): exception raised
|
exception(requests.RequestException): exception raised
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
str: text of the response if it is not None and empty string otherwise
|
str: text of the response if it is not None and empty string otherwise
|
||||||
|
Loading…
Reference in New Issue
Block a user