From 3791074eb4d9fb0c494d436389418367c93c6d6d Mon Sep 17 00:00:00 2001 From: norohind <60548839+norohind@users.noreply.github.com> Date: Tue, 3 May 2022 22:01:48 +0300 Subject: [PATCH] Add limit to retries_limit --- HookSystem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HookSystem.py b/HookSystem.py index 5323bd9..d7e6e42 100644 --- a/HookSystem.py +++ b/HookSystem.py @@ -42,7 +42,7 @@ def _last_records(operation_id: int, limit: int) -> list[dict]: continue with open('retries_list.txt', mode='a') as retries_file: - retries_file.write(f'{operation_id}\n') + retries_file.write(f'{operation_id}:{limit} \n') raise last_exception