Skip to content

Commit

Permalink
Apply black across project
Browse files Browse the repository at this point in the history
  • Loading branch information
bboe committed Feb 4, 2021
1 parent bb0e007 commit bb0e000
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
11 changes: 5 additions & 6 deletions .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
7 changes: 5 additions & 2 deletions prawcore/sessions.py
Expand Up @@ -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
Expand Down

0 comments on commit bb0e000

Please sign in to comment.