From 34207a8969663639e24405e910bf95d10e43fa44 Mon Sep 17 00:00:00 2001 From: Goffi Date: Sun, 7 Apr 2019 15:04:28 +0200 Subject: [PATCH] quick_frontend (widgets): fixed crash on getWidgets when target doesn't correspond to any widget --- sat_frontends/quick_frontend/quick_widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sat_frontends/quick_frontend/quick_widgets.py b/sat_frontends/quick_frontend/quick_widgets.py index 0cdd74c6..a2ecb95b 100644 --- a/sat_frontends/quick_frontend/quick_widgets.py +++ b/sat_frontends/quick_frontend/quick_widgets.py @@ -118,7 +118,7 @@ class QuickWidgetsManager(object): else: filter_hash = None if filter_hash is not None: - for widget in widgets_map[filter_hash]: + for widget in widgets_map.get(filter_hash, []): yield widget else: for widget_instances in widgets_map.itervalues():