reverted for <3.10 compatiblity
This commit is contained in:
1 parent
67f42f7898
commit
0f3c7d5b24
1 file changed
+2
-3
+2
-3
@@ -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...")
|
||||
|
||||
|
||||
Reference in new issue
Block a user