From 89f64db62cd32157d7913a6dce05364fffc4bca2 Mon Sep 17 00:00:00 2001 From: Fuyuan Wang Date: Thu, 20 Oct 2022 16:22:54 -0400 Subject: [PATCH] change sys.exit() to sys.exit(1) --- loader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/loader.py b/loader.py index 4ec7d804..8073cfe8 100755 --- a/loader.py +++ b/loader.py @@ -201,11 +201,11 @@ def main(): if file_list: if config.wipe_db and not config.yes: if not confirm_deletion('Wipe out entire Neo4j database before loading?'): - sys.exit() + sys.exit(1) if config.loading_mode == DELETE_MODE and not config.yes: if not confirm_deletion('Delete all nodes and child nodes from data file?'): - sys.exit() + sys.exit(1) prop_path = os.path.join(config.dataset, config.prop_file) if os.path.isfile(prop_path):