Do not fail when no start_points are given

This commit is contained in:
Davide Andreoli 2015-02-03 19:58:49 +01:00
parent f05be9a21c
commit e8749538ce
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ class ErigoGui(object):
raise RuntimeError('Wrong json version. Found: %s, wanted: %s' % \
(self._data['JSON_Version'], JSON_Version))
for w_name in self._data['Settings']['start_points']:
for w_name in self._data['Settings'].get('start_points', []):
_widget_generate(self, w_name)
def widget_generated(self, name, widget):