mirror of
https://github.com/cve-search/cpe-guesser.git
synced 2024-11-24 15:57:22 +00:00
No error code if import.py exits with warning
It can block app restarting, especially with container usage
This commit is contained in:
parent
8fc6b9c45e
commit
ab6402257e
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ if __name__ == '__main__':
|
|||
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)
|
||||
sys.exit(0)
|
||||
|
||||
if args.download > 0 or not os.path.isfile(cpe_path):
|
||||
print(f"Downloading CPE data from {cpe_source} ...")
|
||||
|
|
Loading…
Reference in a new issue