'Get record associated with an IP
requires GeoIP'

def getASN(self, ip, db=[], notfound='--'):

    o = None
    if (db == []):
        db = self.geoasndb
    for d in db:
        try:
            o = d(ip)
        except:
            continue
        if o:
            return o
    return notfound
