Skip to content

Commit

Permalink
Call the exit hook at the end of main().
Browse files Browse the repository at this point in the history
  • Loading branch information
lucc authored and pazz committed Dec 16, 2015
1 parent ca6c625 commit 14fa213
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions alot/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,5 +185,10 @@ def main():
# set up and start interface
UI(dbman, cmdstring)

# run the exit hook
exit_hook = settings.get_hook('exit')
if exit_hook is not None:
exit_hook()

if __name__ == '__main__':
main()

0 comments on commit 14fa213

Please sign in to comment.