diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2018-06-15 01:42:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-15 01:42:17 +0200 |
commit | 03559bb05fd963e2be96372ae89fb0bce751d26d (patch) | |
tree | 5b0d1c424c6e8acedb77e14ec392d74d4d0c986a /raven/utils/stacks.py | |
parent | 96d9c812c24d45d431bffc57d75bc0b9d29dae71 (diff) | |
download | raven-03559bb05fd963e2be96372ae89fb0bce751d26d.tar.gz |
fix: Fix stacktraces in some situations being the wong way round (#1261)
Diffstat (limited to 'raven/utils/stacks.py')
-rw-r--r-- | raven/utils/stacks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/raven/utils/stacks.py b/raven/utils/stacks.py index c87a64c..487eae3 100644 --- a/raven/utils/stacks.py +++ b/raven/utils/stacks.py @@ -134,7 +134,7 @@ def iter_stack_frames(frames=None): if not frames: frames = inspect.stack()[1:] - for frame, lineno in ((f[0], f[2]) for f in frames): + for frame, lineno in ((f[0], f[2]) for f in reversed(frames)): f_locals = getattr(frame, 'f_locals', {}) if not _getitem_from_frame(f_locals, '__traceback_hide__'): yield frame, lineno |