reverted for <3.10 compatiblity

pull/1288/head
electro199 2 years ago
parent 67f42f7898
commit 0f3c7d5b24

@ -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...")

Loading…
Cancel
Save