From 2898c1540e4751e1bf66215c887f602f1a0e694e Mon Sep 17 00:00:00 2001 From: Adi Foulger Date: Wed, 17 Sep 2014 14:40:13 -0700 Subject: [PATCH] Fixing Exception Traceback (most recent call last): File "C:\Python27\lib\site-packages\gooey\gui\footer.py", line 152, in OnStart Button self._controller.OnStartButton(event, self) File "C:\Python27\lib\site-packages\gooey\gui\controller.py", line 52, in OnSt artButton cmd_line_args = self._base.GetOptions() File "C:\Python27\lib\site-packages\gooey\gui\base_window.py", line 94, in Get Options return self.config_panel.GetOptions() File "C:\Python27\lib\site-packages\gooey\gui\advanced_config.py", line 104, i n GetOptions if c.GetValue() is not None] File "C:\Python27\lib\site-packages\gooey\gui\components.py", line 181, in Get Value [self._action.option_strings[0], # get the verbose copy if available IndexError: list index out of range --- gooey/gui/components.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):