diff --git a/controller/src/mongodb/color.py b/controller/src/mongodb/color.py index 8d45e24f..3fa609b2 100644 --- a/controller/src/mongodb/color.py +++ b/controller/src/mongodb/color.py @@ -3,10 +3,8 @@ def getColor(uuid: str) -> str: """ Getter for color state in the DB. Stdout when method is instantiated and the values.""" response = lumongo.findOne({"uuid": uuid}, {"color": 1}) - color = response.json()["document"]["color"] + color = response.json()["document"]["color"] if not None else "NONE" print(f"INFO | GET | COLOR: {color}") - if color is None: - color = "ERRNONE" return color def setColor(uuid: str, value: str):