# HG changeset patch # User Goffi # Date 1574112853 -3600 # Node ID ab8be8f1c92d0fed416c44a74b3132055c07c607 # Parent 2180b0f5c1cd14e10e3a9ced1cd5a3b26fde6862 quick frontend(app): catch exception when trying to remove a missing listener, and log it diff -r 2180b0f5c1cd -r ab8be8f1c92d sat_frontends/quick_frontend/quick_app.py --- a/sat_frontends/quick_frontend/quick_app.py Mon Nov 18 20:51:25 2019 +0100 +++ b/sat_frontends/quick_frontend/quick_app.py Mon Nov 18 22:34:13 2019 +0100 @@ -565,7 +565,11 @@ @param callback: callback to remove """ assert type_ in C.LISTENERS - self._listeners[type_].pop(callback) + try: + self._listeners[type_].pop(callback) + except KeyError: + log.error( + f"Trying to remove an inexisting listener (type = {type_}): {callback}") def callListeners(self, type_, *args, **kwargs): """Call the methods which listen type_ event. If a profiles filter has