Skip to content

Commit

Permalink
ui, fw: fixed exception checking fw status
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gustavo-iniguez-goya committed Jan 6, 2023
1 parent 5e61bd0 commit 690cea7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/opensnitch/dialogs/firewall.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 690cea7

Please # to comment.