Skip to content

Commit

Permalink
Cleanup database connection following command line installation
Browse files Browse the repository at this point in the history
Previously lib.engine.final_cleanup was only triggered by the GUI.
This change results in the CLI also triggering a final cleanup
after installing a dataset.

This has the added benefit of allowing text file based output
formats to add any necessary end of file information.
  • Loading branch information
ethanwhite committed Jan 26, 2014
1 parent ea00518 commit 8a4382f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions __main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def main():
print "=> Installing", dataset.name
try:
dataset.download(engine, debug=debug)
dataset.engine.final_cleanup()
except KeyboardInterrupt:
pass
except Exception as e:
Expand Down

0 comments on commit 8a4382f

Please sign in to comment.