We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c418470 commit d8ef8a2Copy full SHA for d8ef8a2
1 file changed
aikido_zen/helpers/ip_matcher/__init__.py
@@ -27,6 +27,8 @@ def has(self, network):
27
if not net or not net.is_valid():
28
return False
29
idx = binary_search_for_insertion_index(net, self.sorted)
30
+ if idx < 0:
31
+ return False
32
if idx < len(self.sorted) and self.sorted[idx].contains(net):
33
return True
34
if idx - 1 >= 0 and self.sorted[idx - 1].contains(net):
0 commit comments