From 673637f4d11b161b8768411e859d19914aa4b2e0 Mon Sep 17 00:00:00 2001 From: Steven Walter Date: Mon, 14 Jul 2008 13:46:25 -0400 Subject: [PATCH] Don't let pre-hooks prevent the main command from running By using the same local variable name in both places, meth was getting clobbered by the pre-hook. --- yap/yap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yap/yap.py b/yap/yap.py index 9e1a01a..0a22280 100644 --- a/yap/yap.py +++ b/yap/yap.py @@ -1218,10 +1218,10 @@ commits cannot be made. # invoke pre-hooks for p in self.plugins.values(): try: - meth = p.__getattribute__("pre_"+command) + pre_meth = p.__getattribute__("pre_"+command) except AttributeError: continue - meth(*args, **flags) + pre_meth(*args, **flags) meth(*args, **flags) -- 2.11.4.GIT