From c9d4461f8fa187212b4b6edac0bbfbbe6181d5bb Mon Sep 17 00:00:00 2001 From: Alexandre Leites <1256013+alexandre-leites@users.noreply.github.com> Date: Tue, 14 Mar 2023 14:30:00 +0100 Subject: [PATCH] Update commands.py to fix None values --- pyhon/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyhon/commands.py b/pyhon/commands.py index 6fad60a..7c1e9ee 100644 --- a/pyhon/commands.py +++ b/pyhon/commands.py @@ -67,5 +67,5 @@ class HonCommand: @property def settings(self): """Parameters with typology enum and range""" - return {s: self._parameters[s] for s in self.setting_keys} + return {s: self._parameters.get(s) for s in self.setting_keys if self._parameters.get(s) is not None}