Skip to content

Commit

Permalink
Do not fail if cannot import iptc
Browse files Browse the repository at this point in the history
  • Loading branch information
badrogger committed Nov 18, 2024
1 parent c4ad6a9 commit f5ccf8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node_cli/core/iptables.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

try:
import iptc
except (FileNotFoundError, AttributeError) as err:
except (FileNotFoundError, AttributeError, ModuleNotFoundError) as err:
if "pytest" in sys.modules or ENV == 'dev':
from collections import namedtuple # hotfix for tests
iptc = namedtuple('iptc', ['Chain', 'Rule'])
Expand Down

0 comments on commit f5ccf8b

Please sign in to comment.