From 65137f294e97b98723de44bd5363b8fa0e8a6be5 Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Fri, 14 Feb 2020 21:52:23 +0100 Subject: [PATCH] [engine] Small bugfix if no IDs are configured see #547 --- bumblebee/engine.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bumblebee/engine.py b/bumblebee/engine.py index 377dfc4..fd3bbe9 100644 --- a/bumblebee/engine.py +++ b/bumblebee/engine.py @@ -295,11 +295,14 @@ class Engine(object): self._current_module = module module.update_wrapper(module.widgets()) if module.error is None: - widget_ids = module.parameter('id', '').split(',') + widget_ids = [] + if module.parameter('id'): + widget_ids = module.parameter('id').split(',') idx = 0 for widget in module.widgets(): widget.link_module(module) - widget.id = widget_ids[idx] if idx < len(widget_ids) else widget.id + if idx < len(widget_ids): + widget.id = widget_ids[idx] idx = idx + 1 self._output.draw(widget=widget, module=module, engine=self) else: