The bot now retries upon HTTP errors
This commit is contained in:
parent
9052f6595c
commit
92c36cb6e8
|
@ -259,7 +259,7 @@ async def main(arguments: argparse.Namespace) -> int:
|
|||
result := await send_request(client, "get", GET_BOOKABLE_LESSONS_URL.format(arguments.tax_code)),
|
||||
arguments.verbose,
|
||||
):
|
||||
return -1
|
||||
continue # Tries again
|
||||
else:
|
||||
entries = []
|
||||
for chunk in json.loads(result.text):
|
||||
|
|
Loading…
Reference in New Issue