From 24cd608aec038e92c42fd6dcaba2b4483e5bb7b5 Mon Sep 17 00:00:00 2001 From: Dikola Date: Tue, 8 Mar 2022 20:59:20 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BE=D0=B1=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=BA=D1=83=20429=20?= =?UTF-8?q?=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.py b/main.py index a810aed..51a8730 100644 --- a/main.py +++ b/main.py @@ -163,6 +163,11 @@ def clone_repos(repos, }, data=json.dumps(json_data) ) + + if gitflic_repo.status_code == 429: + logger.info(f'Request limit exceeded.') + sys.exit() + except Exception: logger.info(f'Error while creating repository on gitflic.') continue