Esempio n. 1
0
def apimethod_nmap_purge_database():
    """Purge the redis database"""
    db = None
    try:
        db = NMAPScansDB()
        db.flush()
    finally:
        del db
Esempio n. 2
0
def apimethod_nmap_purge_database():
    """Purge the redis database"""
    try:
        db = NMAPScansDB()
        db.flush()
    except Exception:
        raise
    finally:
        del db