From 94fccd1176dd2eb517c94c22e90d5f04ec8527ca Mon Sep 17 00:00:00 2001 From: Goffi Date: Fri, 28 Feb 2020 10:06:38 +0100 Subject: [PATCH] quick frontend (app): avoid crash when a listener is removed while being called --- sat_frontends/quick_frontend/quick_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sat_frontends/quick_frontend/quick_app.py b/sat_frontends/quick_frontend/quick_app.py index f9e67558..09474a4c 100644 --- a/sat_frontends/quick_frontend/quick_app.py +++ b/sat_frontends/quick_frontend/quick_app.py @@ -619,7 +619,7 @@ class QuickApp(object): pass else: profile = kwargs.get("profile") - for listener, profiles_filter in listeners.items(): + for listener, profiles_filter in list(listeners.items()): if profile is None or not profiles_filter or profile in profiles_filter: listener(*args, **kwargs)