1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-14 11:19:26 +08:00

upd: shrink CrackerError message

This commit is contained in:
0O0o0oOoO00
2025-11-21 18:21:31 +08:00
parent e3fdc85c27
commit 4b5f0bada6
2 changed files with 21 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ class CrackApi:
self.api_url = base_url
self.timeout = timeout
@retry(tries=3, delay=3)
@retry(tries=3, delay=3, logger=None)
def get(self, path, **kwargs):
args = []
for k, v in kwargs.items():
@@ -81,7 +81,7 @@ class CrackApi:
raise CrackerError(f'CrackApi response error: {response.status_code}')
return response
@retry(tries=3, delay=3)
@retry(tries=3, delay=3, logger=None)
def post(self, path, data=None):
url = f'{self.api_url}/{path}'
if data is not None and isinstance(data, dict):