Skip to content

Commit

Permalink
[FIX] Handle ValidationError properly
Browse files Browse the repository at this point in the history
  • Loading branch information
lubusax committed Oct 16, 2023
1 parent ab1acae commit 26a42fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hr_attendance_rfid/models/hr_employee.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 26a42fe

Please sign in to comment.