Fix mypy error in web_programming/reddit.py (#9162)

* updating DIRECTORY.md

* updating DIRECTORY.md

* Fix mypy error in web_programming/reddit.py

web_programming/reddit.py:36: error: Missing named argument "response" for "HTTPError"  [call-arg]

---------

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
Tianyi Zheng
2023-10-01 16:10:33 +13:00
committed by GitHub
co-authored by github-actions
parent dec96438be
commit aaf7195465
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ def get_subreddit_data(
headers={"User-agent": "A random string"},
)
if response.status_code == 429:
raise requests.HTTPError
raise requests.HTTPError(response=response)
data = response.json()
if not wanted_data: