diff --git a/reddit/subreddit.py b/reddit/subreddit.py index 6f7c3e9..62a67b1 100644 --- a/reddit/subreddit.py +++ b/reddit/subreddit.py @@ -41,9 +41,8 @@ def get_subreddit_threads(POST_ID: str): check_for_async=False, ) except ResponseException as e: - match e.response.status_code: - case 401: - print("Invalid credentials - please check them in config.toml") + if e.response.status_code == 401: + print("Invalid credentials - please check them in config.toml") except: print("Something went wrong...")