diff --git a/actions/api_cf.py b/actions/api_cf.py index eba2df102..1d24f88c8 100644 --- a/actions/api_cf.py +++ b/actions/api_cf.py @@ -915,10 +915,14 @@ def accept(self, dialog, complet_result, feature_id, _json, p_widget=None, clear result = json.loads(row[0], object_pairs_hook=OrderedDict) if "Accepted" in result['status']: - level = result['message']['level'] - msg = result['message']['text'] - self.controller.show_message(msg, message_level=level) - self.reload_fields(dialog, row, p_widget) + try: + level = result['message']['level'] + msg = result['message']['text'] + self.controller.show_message(msg, message_level=level) + except KeyError: + pass + finally: + self.reload_fields(dialog, row, p_widget) elif "Failed" in result['status']: msg = "FAIL" self.controller.show_message(msg, message_level=2)