Skip to content

Commit 35701b7

Browse files
lubusaxAaronHForgeFlow
authored andcommitted
[FIX] hr_attendance_rifd: catch ValidationError
in a way RFID devices can handle it
1 parent 45c72a6 commit 35701b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hr_attendance_rfid/models/hr_employee.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,6 @@ def register_attendance(self, card_code):
7272
res["error_message"] = msg
7373
return res
7474
except Exception as e:
75-
res["error_message"] = str(e)
76-
_logger.error(str(e))
75+
res["error_message"] = repr(e)
76+
_logger.error(repr(e))
7777
return res

0 commit comments

Comments
 (0)