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, check_for_async=False,
) )
except ResponseException as e: except ResponseException as e:
# match wasnt supported for python 3.9+ or above. So fixed it with a simple if stament. match e.response.status_code:
if(e.response.status_code == 401): print("Invalid credentials - please check them in config.toml") case 401:
print("Invalid credentials - please check them in config.toml")
except: except:
print("Something went wrong...") print("Something went wrong...")

Loading…
Cancel
Save