Use pass instead of bare None value

This commit is contained in:
Toshio Kuratomi 2015-02-01 17:07:36 -08:00
commit f6e8ddfd5f

View file

@ -416,7 +416,7 @@ def ipaddr(value, query = '', version = False, alias = 'ipaddr'):
iplist = netaddr.IPSet([netaddr.IPNetwork(query)]) iplist = netaddr.IPSet([netaddr.IPNetwork(query)])
query = 'cidr_lookup' query = 'cidr_lookup'
except: except:
None pass
# This code checks if value maches the IP version the user wants, ie. if # This code checks if value maches the IP version the user wants, ie. if
# it's any version ("ipaddr()"), IPv4 ("ipv4()") or IPv6 ("ipv6()") # it's any version ("ipaddr()"), IPv4 ("ipv4()") or IPv6 ("ipv6()")