This commit is contained in:
Benjamyn committed 2018-02-04 19:35:15 -05:00
1 parent 6fca113ea3
commit 873283e72d
1 file changed
+3 -1
+3 -1
View File
@@ -19,6 +19,7 @@ def splitLine(fileline):
return tmpline return tmpline
def lookup(ip): def lookup(ip):
try:
net = Net(ip) net = Net(ip)
obj = IPASN(net) obj = IPASN(net)
results = obj.lookup() results = obj.lookup()
@@ -28,7 +29,8 @@ def lookup(ip):
print(value) print(value)
if key == "asn_cidr": if key == "asn_cidr":
print(value) print(value)
except Exception as e:
print(e)
ipListFile = openFile("iplist.txt") ipListFile = openFile("iplist.txt")
ipList = ipListFile.read() ipList = ipListFile.read()