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, check_for_async=False,
) )
except ResponseException as e: except ResponseException as e:
match e.response.status_code: if e.response.status_code == 401:
case 401: print("Invalid credentials - please check them in config.toml")
print("Invalid credentials - please check them in config.toml")
except: except:
print("Something went wrong...") print("Something went wrong...")

Loading…
Cancel
Save