diff --git a/py/code/frame.py b/py/code/frame.py index 8b67ba27d..221fcd72b 100644 --- a/py/code/frame.py +++ b/py/code/frame.py @@ -50,6 +50,9 @@ class Frame(object): """ retval = [] for arg in self.code.getargs(): - retval.append((arg, self.f_locals[arg])) + try: + retval.append((arg, self.f_locals[arg])) + except KeyError: + pass # this can occur when using Psyco return retval