From ab6402257eb5bcc7b6542348ba92f5cd859d37ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Copin?= Date: Tue, 11 Jul 2023 09:10:39 +0200 Subject: [PATCH] No error code if import.py exits with warning It can block app restarting, especially with container usage --- bin/import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/import.py b/bin/import.py index c1bf1f4..8c91e34 100644 --- a/bin/import.py +++ b/bin/import.py @@ -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} ...")