Skip to content

Commit

Permalink
Support __traceback_hide__ on stacks
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Nov 3, 2011
1 parent 637eadf commit 1709603
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions raven/utils/stacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,10 @@ def iter_traceback_frames(tb):
def iter_stack_frames(frames=None):
if not frames:
frames = inspect.stack()[1:]
for frame_crud in frames:
yield frame_crud[0]
for frame in (f[0] for f in frames):
if frame.f_locals.get('__traceback_hide__'):
continue
yield frame

def get_stack_info(frames):
results = []
Expand Down

0 comments on commit 1709603

Please sign in to comment.