From 690cea77741976af68430d9414bb6f7361310d9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustavo=20I=C3=B1iguez=20Goia?= Date: Fri, 6 Jan 2023 15:53:03 +0100 Subject: [PATCH] ui, fw: fixed exception checking fw status Under certain situation, checking fw status caused an exception loading the GUI when new nodes connected. What caused this error is unknown, so for now we'll protect the GUI from crashing. Closes #790 --- ui/opensnitch/dialogs/firewall.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/opensnitch/dialogs/firewall.py b/ui/opensnitch/dialogs/firewall.py index 286766854b..19845eb316 100644 --- a/ui/opensnitch/dialogs/firewall.py +++ b/ui/opensnitch/dialogs/firewall.py @@ -230,6 +230,9 @@ def _check_fw_status(self): self._set_status_error(QC.translate("firewall", "Error getting OUTPUT chain policy")) self._disable_widgets() + except Exception as e: + self._set_status_error("Firewall status error (report on github please): {0}".format(e)) + finally: # some nodes may have the firewall disabled whilst other enabled #if not enableFw: