summaryrefslogtreecommitdiff
path: root/alot
diff options
context:
space:
mode:
authorLucas Hoffmann <l-m-h@web.de>2015-12-03 20:07:38 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2015-12-16 16:06:20 +0000
commit14fa2133fef5004f4af120ea43e7dd3fa2805c36 (patch)
tree4bc9d970099287f4a3d8dab38ae0a080230e0a92 /alot
parentca6c625401d82cff596dfa028873407276de6325 (diff)
Call the `exit` hook at the end of main().
Diffstat (limited to 'alot')
-rwxr-xr-xalot/init.py5
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()