Improvement: Refactor code to use dict.get() method #146
Labels
Category: Coding
Changes to code base or refactored code that doesn't fix a bug.
Open Source Hack
Status: Available
Issue was approved and available to claim or abandoned for over 3 days.
Type: Enhancement
New feature or request.
Description
As a developer,
I need code to be consistent and error-free.
Mocks
stem-diverse-tv/app/api/controllers/author.py
Lines 32 to 33 in 031e3ee
For example this can be replaced by the get method i.e.
data.get("KEY", "DEFAULT_VALUE")
to avoid KeyErrorAcceptance Criteria
Update [Required]
Definition of Done
Estimation
2 hours
The text was updated successfully, but these errors were encountered: