The bot now retries upon HTTP errors

This commit is contained in:
nocturn9x 2021-11-06 16:30:53 +01:00
parent 9052f6595c
commit 92c36cb6e8
1 changed files with 2 additions and 2 deletions

View File

@ -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):