Skip to content

Commit

Permalink
Merge 6136c9b into 41f6ba7
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 19, 2023
2 parents 41f6ba7 + 6136c9b commit 8e00a42
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ repos:
- repo: https://github.com/psf/black
hooks:
- id: black
rev: 22.12.0
rev: 23.1.0

- repo: https://github.com/LilSpazJoekp/docstrfmt
hooks:
Expand All @@ -50,7 +50,7 @@ repos:
- repo: https://github.com/pycqa/isort
hooks:
- id: isort
rev: 5.11.4
rev: 5.12.0

- repo: https://github.com/pycqa/pydocstyle
hooks:
Expand Down
4 changes: 3 additions & 1 deletion asyncpraw/models/reddit/mixins/replyable.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,7 @@ async def reply(
comments = await self._reddit.post(API_PATH["comment"], data=data)
try:
return comments[0]
except IndexError: # pragma: no cover; I haven't been able to make this happen again
except (
IndexError
): # pragma: no cover; I haven't been able to make this happen again
return None
1 change: 0 additions & 1 deletion docs/examples/use_file_token_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ async def main():
token_manager=refresh_token_manager,
user_agent="use_file_token_manager/v0 by u/bboe",
) as reddit:

scopes = await reddit.auth.scopes()
if scopes == {"*"}:
print(f"{await reddit.user.me()} is authenticated with all scopes")
Expand Down
1 change: 0 additions & 1 deletion tests/integration/models/reddit/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,6 @@ async def test_post_flair_widget(self, reddit):
class TestRulesWidget(IntegrationTest):
@pytest.mark.cassette_name("TestSubredditWidgets.fetch_widgets")
async def test_rules_widget(self, reddit):

subreddit = await reddit.subreddit(pytest.placeholders.test_subreddit)
widgets = subreddit.widgets
rules = None
Expand Down

0 comments on commit 8e00a42

Please sign in to comment.