mirror of
https://github.com/cve-search/cpe-guesser.git
synced 2024-11-14 10:58:27 +00:00
fix: [import] don't exit on update process
This commit is contained in:
parent
b87e83909e
commit
3d40abfd5c
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ if __name__ == '__main__':
|
|||
argparser.add_argument('--update', '-u', action='store_true', default=False, help='Update the CPE database without flushing')
|
||||
args = argparser.parse_args()
|
||||
|
||||
if args.replace == 0 and rdb.dbsize() > 0:
|
||||
if args.replace == 0 and rdb.dbsize() > 0 and not args.update:
|
||||
print(f"Warning! The Redis database already has {rdb.dbsize()} keys.")
|
||||
print("Use --replace if you want to flush the database and repopulate it.")
|
||||
sys.exit(1)
|
||||
|
|
Loading…
Reference in a new issue