diff options
author | Lucas Hoffmann <l-m-h@web.de> | 2015-12-03 20:07:38 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2015-12-16 16:06:20 +0000 |
commit | 14fa2133fef5004f4af120ea43e7dd3fa2805c36 (patch) | |
tree | 4bc9d970099287f4a3d8dab38ae0a080230e0a92 /alot | |
parent | ca6c625401d82cff596dfa028873407276de6325 (diff) |
Call the `exit` hook at the end of main().
Diffstat (limited to 'alot')
-rwxr-xr-x | alot/init.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/alot/init.py b/alot/init.py index 9f790acf..165f9092 100755 --- a/alot/init.py +++ b/alot/init.py @@ -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() |