Skip to content

Commit aaf7195

Browse files
tianyizheng02github-actions
and
github-actions
authored
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>
1 parent dec9643 commit aaf7195

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DIRECTORY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@
341341
* [Palindrome Partitioning](dynamic_programming/palindrome_partitioning.py)
342342
* [Regex Match](dynamic_programming/regex_match.py)
343343
* [Rod Cutting](dynamic_programming/rod_cutting.py)
344+
* [Smith Waterman](dynamic_programming/smith_waterman.py)
344345
* [Subset Generation](dynamic_programming/subset_generation.py)
345346
* [Sum Of Subset](dynamic_programming/sum_of_subset.py)
346347
* [Tribonacci](dynamic_programming/tribonacci.py)
@@ -567,7 +568,6 @@
567568
* [Dual Number Automatic Differentiation](maths/dual_number_automatic_differentiation.py)
568569
* [Entropy](maths/entropy.py)
569570
* [Euclidean Distance](maths/euclidean_distance.py)
570-
* [Euclidean Gcd](maths/euclidean_gcd.py)
571571
* [Euler Method](maths/euler_method.py)
572572
* [Euler Modified](maths/euler_modified.py)
573573
* [Eulers Totient](maths/eulers_totient.py)

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)