From 72a7a22d4e4708659d2576dc9117b058165ea51a Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 27 Oct 2004 07:50:47 +0000 Subject: [PATCH] Fixed a bug in getId and added a debug log to Spec.__call__. --- src/commands.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commands.py b/src/commands.py index 2c97d0a05..6d1bc1f11 100644 --- a/src/commands.py +++ b/src/commands.py @@ -214,6 +214,7 @@ def getId(irc, msg, args, state, kind=None): getInt(irc, msg, args, state, type=type) except Exception, e: args[0] = original + raise def getExpiry(irc, msg, args, state): now = int(time.time()) @@ -805,6 +806,7 @@ def wrap(f, specList=[], **kw): spec = Spec(specList, **kw) def newf(self, irc, msg, args, **kwargs): state = spec(irc, msg, args, stateAttrs={'cb': self, 'log': self.log}) + self.log.debug('State before call: %s' % state) f(self, irc, msg, args, *state.args, **state.kwargs) return utils.changeFunctionName(newf, f.func_name, f.__doc__)