Fixed
This commit is contained in:
parent
6fca113ea3
commit
873283e72d
4
main.py
4
main.py
@ -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()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user