Skip to content

Commit

Permalink
change sys.exit() to sys.exit(1)
Browse files Browse the repository at this point in the history
  • Loading branch information
wfy1997 committed Oct 20, 2022
1 parent 1fac5c1 commit 89f64db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 89f64db

Please sign in to comment.