diff --git a/hr_attendance_rfid/models/hr_employee.py b/hr_attendance_rfid/models/hr_employee.py index d2cf82a0..2cde6c2f 100644 --- a/hr_attendance_rfid/models/hr_employee.py +++ b/hr_attendance_rfid/models/hr_employee.py @@ -69,6 +69,6 @@ def register_attendance(self, card_code): res["error_message"] = msg return res except Exception as e: - res["error_message"] = e - _logger.error(e) + res["error_message"] = str(e) + _logger.error(str(e)) return res