diff --git a/frontends/src/quick_frontend/quick_widgets.py b/frontends/src/quick_frontend/quick_widgets.py index e0f39aec..5cc9b9e9 100644 --- a/frontends/src/quick_frontend/quick_widgets.py +++ b/frontends/src/quick_frontend/quick_widgets.py @@ -176,7 +176,7 @@ class QuickWidgetsManager(object): # the widget already exists if on_existing_widget == C.WIDGET_KEEP: pass - if on_existing_widget == C.WIDGET_RAISE: + elif on_existing_widget == C.WIDGET_RAISE: raise WidgetAlreadyExistsError(hash_) elif on_existing_widget == C.WIDGET_RECREATE: # we use getOrCreateWidget to recreate the new widget