diff --git a/gooey/gui/components.py b/gooey/gui/components.py index 07f996a..afd985f 100644 --- a/gooey/gui/components.py +++ b/gooey/gui/components.py @@ -178,7 +178,7 @@ class Choice(AbstractComponent): if self._widget.GetValue() == self._DEFAULT_VALUE: return None return ' '.join( - [self._action.option_strings[0], # get the verbose copy if available + [self._action.option_strings[0] if self._action.option_strings else '', # get the verbose copy if available self._widget.GetValue()]) def BuildInputWidget(self, parent, action):