diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-02-15 11:42:00 +0300 |
---|---|---|
committer | Innokentii Mokin <innokentii@ydb.tech> | 2024-02-16 18:35:18 +0000 |
commit | 7b5df0095abcb037bd84e4682f90c04b36796e3d (patch) | |
tree | 02de55e9d40978330b14e91aa6275ab8db1c2ba3 /contrib/python/ipython/py3/IPython/core/ultratb.py | |
parent | 4a82bfdb9b900b928096ffe53670200e94ec8a23 (diff) | |
download | ydb-7b5df0095abcb037bd84e4682f90c04b36796e3d.tar.gz |
Intermediate changes
Diffstat (limited to 'contrib/python/ipython/py3/IPython/core/ultratb.py')
-rw-r--r-- | contrib/python/ipython/py3/IPython/core/ultratb.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/contrib/python/ipython/py3/IPython/core/ultratb.py b/contrib/python/ipython/py3/IPython/core/ultratb.py index cb0d8f951f..b0f9e08a3d 100644 --- a/contrib/python/ipython/py3/IPython/core/ultratb.py +++ b/contrib/python/ipython/py3/IPython/core/ultratb.py @@ -789,7 +789,20 @@ class FrameInfo: @property def lines(self): - return self._sd.lines + from executing.executing import NotOneValueFound + + try: + return self._sd.lines + except NotOneValueFound: + + class Dummy: + lineno = 0 + is_current = False + + def render(self, *, pygmented): + return "<Error retrieving source code with stack_data see ipython/ipython#13598>" + + return [Dummy()] @property def executing(self): |