##// END OF EJS Templates
Prevent crash on StackData NotOneValueFound. (#14286)...
M Bussonnier -
r28574:9699b3e6 merge
parent child Browse files
Show More
@@ -789,7 +789,20 b' class FrameInfo:'
789 789
790 790 @property
791 791 def lines(self):
792 return self._sd.lines
792 from executing.executing import NotOneValueFound
793
794 try:
795 return self._sd.lines
796 except NotOneValueFound:
797
798 class Dummy:
799 lineno = 0
800 is_current = False
801
802 def render(self, *, pygmented):
803 return "<Error retrieving source code with stack_data see ipython/ipython#13598>"
804
805 return [Dummy()]
793 806
794 807 @property
795 808 def executing(self):
General Comments 0
You need to be logged in to leave comments. Login now