mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Use pass instead of bare None value
This commit is contained in:
parent
624a8dd1d9
commit
f6e8ddfd5f
1 changed files with 1 additions and 1 deletions
|
@ -416,7 +416,7 @@ def ipaddr(value, query = '', version = False, alias = 'ipaddr'):
|
|||
iplist = netaddr.IPSet([netaddr.IPNetwork(query)])
|
||||
query = 'cidr_lookup'
|
||||
except:
|
||||
None
|
||||
pass
|
||||
|
||||
# This code checks if value maches the IP version the user wants, ie. if
|
||||
# it's any version ("ipaddr()"), IPv4 ("ipv4()") or IPv6 ("ipv6()")
|
||||
|
|
Loading…
Reference in a new issue