diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bedfa07..f00afa7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,8 +1,7 @@ -default_language_version: - python: python3.7 fail_fast: true repos: - - hooks: - - id: black - repo: https://github.com/ambv/black - rev: stable +- hooks: + - id: black + language_version: python3 + repo: https://github.com/psf/black + rev: stable diff --git a/prawcore/sessions.py b/prawcore/sessions.py index 054b019..45ad7fa 100644 --- a/prawcore/sessions.py +++ b/prawcore/sessions.py @@ -202,8 +202,11 @@ def _make_request( ) return response, None except RequestException as exception: - if not retry_strategy_state.should_retry_on_failure() or not isinstance( # noqa: E501 - exception.original_exception, self.RETRY_EXCEPTIONS + if ( + not retry_strategy_state.should_retry_on_failure() + or not isinstance( # noqa: E501 + exception.original_exception, self.RETRY_EXCEPTIONS + ) ): raise return None, exception.original_exception