reverted for <3.10 compatiblity

This commit is contained in:
electro199 committed 2022-11-13 01:01:36 -08:00
1 parent 67f42f7898
commit 0f3c7d5b24
1 file changed
+2 -3
+2 -3
View File
@@ -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...")