From 702ef7641cc186e02b04cdecc1c6e9846225d468 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 9 May 2023 08:46:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20while=20=E5=BE=AA=E7=8E=AF=E5=81=9Acard?= =?UTF-8?q?=5Fdoor=5Fauthority=E7=9A=84=E8=A1=A5=E5=81=BF=E6=9C=BA?= =?UTF-8?q?=E5=88=B64?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/hrm/services.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/hrm/services.py b/apps/hrm/services.py index 2a18b353..9faaf32d 100755 --- a/apps/hrm/services.py +++ b/apps/hrm/services.py @@ -197,6 +197,7 @@ class HrmService: time.sleep(6) try: dhClient.request(**dhapis['card_door_authority'], json=json_data) + break except Exception as e: ind = ind + 1 if ind >= 6: