diff --git a/qubesmanager/firewall.py b/qubesmanager/firewall.py index 6992afa..d7b411a 100644 --- a/qubesmanager/firewall.py +++ b/qubesmanager/firewall.py @@ -386,7 +386,7 @@ class QubesFirewallRulesModel(QtCore.QAbstractItemModel): self.tr("Invalid port or service"), self.tr("Port number or service '{0}' is invalid.") .format(service)) - elif service is not None: + elif service is not None and service != "": try: rule.dstports = service except (TypeError, ValueError) as ex: