##// END OF EJS Templates
Backport PR #13264: f_locals might not have get method
Matthias Bussonnier -
Show More
@@ -415,9 +415,10 b' class Pdb(OldPdb):'
415 415 if self._predicates["tbhide"]:
416 416 if frame in (self.curframe, getattr(self, "initial_frame", None)):
417 417 return False
418 else:
419 return self._get_frame_locals(frame).get("__tracebackhide__", False)
420
418 frame_locals = self._get_frame_locals(frame)
419 if "__tracebackhide__" not in frame_locals:
420 return False
421 return frame_locals["__tracebackhide__"]
421 422 return False
422 423
423 424 def hidden_frames(self, stack):
General Comments 0
You need to be logged in to leave comments. Login now