Update subreddit.py

pull/1172/head
cooler 3 years ago
parent d03363a280
commit 61fff84a91

@ -41,8 +41,9 @@ def get_subreddit_threads(POST_ID: str):
check_for_async=False,
)
except ResponseException as e:
# match wasnt supported for python 3.9+ or above. So fixed it with a simple if stament.
if(e.response.status_code == 401): print("Invalid credentials - please check them in config.toml")
match e.response.status_code:
case 401:
print("Invalid credentials - please check them in config.toml")
except:
print("Something went wrong...")

Loading…
Cancel
Save