Skip to content

Commit c37154f

Browse files
committed
Fix mypy error in web_programming/reddit.py
web_programming/reddit.py:36: error: Missing named argument "response" for "HTTPError" [call-arg]
1 parent de903b5 commit c37154f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: web_programming/reddit.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def get_subreddit_data(
3333
headers={"User-agent": "A random string"},
3434
)
3535
if response.status_code == 429:
36-
raise requests.HTTPError
36+
raise requests.HTTPError(response=response)
3737

3838
data = response.json()
3939
if not wanted_data:

0 commit comments

Comments
 (0)