We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d55e1d8 commit e5bda6aCopy full SHA for e5bda6a
1 file changed
capirca/utils/iputils.py
@@ -35,7 +35,7 @@ def exclude_address(
35
if not isinstance(exclude_net, ipaddress._BaseNetwork): # pylint disable=protected-access
36
raise TypeError('%s is not a network object' % exclude_net)
37
38
- if not base_net._version == exclude_net._version: # pylint disable=protected-access # pytype: disable=attribute-error
+ if not base_net.version == exclude_net.version:
39
raise TypeError(
40
'%s and %s are not of the same version' % (base_net, exclude_net)
41
)
0 commit comments