[3] fix mdblist logic

pull/1813/head
meisnate12 11 months ago
parent a210ec84e1
commit 51e785437b

@ -1 +1 @@
1.20.0-develop2 1.20.0-develop3

@ -106,7 +106,7 @@ class Mdblist:
response = self.config.get_json(url, params=final_params) response = self.config.get_json(url, params=final_params)
except JSONDecodeError: except JSONDecodeError:
raise Failed("Mdblist Error: JSON Decoding Failed") raise Failed("Mdblist Error: JSON Decoding Failed")
if "response" in response and response["response"] is False or response["response"] == "False": if "response" in response and (response["response"] is False or response["response"] == "False"):
if response["error"] in ["API Limit Reached!", "API Rate Limit Reached!"]: if response["error"] in ["API Limit Reached!", "API Rate Limit Reached!"]:
self.limit = True self.limit = True
raise LimitReached(f"MdbList Error: {response['error']}") raise LimitReached(f"MdbList Error: {response['error']}")

Loading…
Cancel
Save