コード例 #1
0
ファイル: nmap.py プロジェクト: zoe-mora-imdc/Ossim
def apimethod_nmap_purge_database():
    """Purge the redis database"""
    db = None
    try:
        db = NMAPScansDB()
        db.flush()
    finally:
        del db
コード例 #2
0
def apimethod_nmap_purge_database():
    """Purge the redis database"""
    try:
        db = NMAPScansDB()
        db.flush()
    except Exception:
        raise
    finally:
        del db