From 45fce4a54f4448864525462bc66f5d327c0d8def Mon Sep 17 00:00:00 2001 From: Patrick Totzke Date: Sun, 19 Feb 2012 21:48:33 +0000 Subject: dont pass config parm to hooks --- alot/ui.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'alot/ui.py') diff --git a/alot/ui.py b/alot/ui.py index 032f627b..e4092e63 100644 --- a/alot/ui.py +++ b/alot/ui.py @@ -436,9 +436,7 @@ class UI(object): if cmd.prehook: logging.debug('calling pre-hook') try: - cmd.prehook(ui=self, dbm=self.dbman, - config=settings) - + cmd.prehook(ui=self, dbm=self.dbman) except: logging.exception('prehook failed') @@ -447,9 +445,7 @@ class UI(object): if cmd.posthook: logging.debug('calling post-hook') try: - cmd.posthook(ui=self, dbm=self.dbman, - config=settings) - #TODO: ducument hooks wrt settingsmanager + cmd.posthook(ui=self, dbm=self.dbman) except: logging.exception('posthook failed') -- cgit v1.2.3