Skip to content

Commit

Permalink
TEST: pylint none type error
Browse files Browse the repository at this point in the history
  • Loading branch information
vliu36 committed Jul 25, 2024
1 parent 950a2e6 commit 6a7759e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controller/src/mongodb/color.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ def getColor(uuid: str) -> str:
response = lumongo.findOne({"uuid": uuid}, {"color": 1})
color = response.json()["document"]["color"]
print(f"INFO | GET | COLOR: {color}")
if color is None:
color = "ERRNONE"
return color

def setColor(uuid: str, value: str):
Expand Down

0 comments on commit 6a7759e

Please sign in to comment.