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: