Open
Description
Description
As a developer,
I need code to be consistent and error-free.
Mocks
mentorship-backend/app/api/dao/user.py
Lines 42 to 46 in d52d777
For example this can be replaced by the get method i.e.
data.get("KEY", "DEFAULT_VALUE")
to avoid KeyError
Acceptance Criteria
Update [Required]
- Use get method in all code to avoid the raise of KeyError
- Handle exceptions for default value
Definition of Done
- All of the required items are completed.
- Approval by 1 mentor.
Estimation
2 hours