quick_frontend (widgets): fixed crash on getWidgets when target doesn't correspond to any widget

This commit is contained in:
Goffi 2019-04-07 15:04:28 +02:00
commit 34207a8969

View file

@ -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():