Author: Carl Friedrich Bolz-Tereick <[email protected]>
Branch: py3.7
Changeset: r98581:1401d76b3e8f
Date: 2020-01-24 12:22 +0100
http://bitbucket.org/pypy/pypy/changeset/1401d76b3e8f/
Log: fix translation
diff --git a/pypy/interpreter/pytraceback.py b/pypy/interpreter/pytraceback.py
--- a/pypy/interpreter/pytraceback.py
+++ b/pypy/interpreter/pytraceback.py
@@ -70,7 +70,7 @@
newnext = space.interp_w(PyTraceback, w_next, can_be_None=True)
# check for loops
curr = newnext
- while curr is not None:
+ while curr is not None and isinstance(curr, PyTraceback):
if curr is self:
raise oefmt(space.w_ValueError, 'traceback loop detected')
curr = curr.next
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit