mirror of
https://github.com/peeringdb/peeringdb.git
synced 2024-05-11 05:55:09 +00:00
handle bogon asns (#419)
This commit is contained in:
@ -41,6 +41,8 @@ def setup_module(module):
|
||||
def get_asn(self, asn):
|
||||
if asn in ASN_RANGE_OVERRIDE:
|
||||
return pdbinet.RdapAsn(self.override_result)
|
||||
elif pdbinet.asn_is_bogon(asn):
|
||||
return RdapLookup_get_asn(self, asn)
|
||||
else:
|
||||
raise pdbinet.RdapNotFoundError()
|
||||
|
||||
|
Reference in New Issue
Block a user