From 0f3c7d5b24e57fc2ed8c7b5834a722f0fd37ccaf Mon Sep 17 00:00:00 2001 From: electro199 Date: Sun, 13 Nov 2022 01:01:36 -0800 Subject: [PATCH] reverted for <3.10 compatiblity --- reddit/subreddit.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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...")