changeset 2888:e3803ae89fbc

quick_frontend (widgets): fixed crash on getWidgets when target doesn't correspond to any widget
author Goffi <goffi@goffi.org>
date Sun, 07 Apr 2019 15:04:28 +0200
parents 9aadf11b315b
children 28fe69b87ba4
files sat_frontends/quick_frontend/quick_widgets.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat_frontends/quick_frontend/quick_widgets.py	Sat Apr 06 19:05:58 2019 +0200
+++ b/sat_frontends/quick_frontend/quick_widgets.py	Sun Apr 07 15:04:28 2019 +0200
@@ -118,7 +118,7 @@
             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():