Show More
@@ -854,11 +854,11 b' class VerboseTB(TBTools):' | |||||
854 | with display_trap: |
|
854 | with display_trap: | |
855 | self.pdb.reset() |
|
855 | self.pdb.reset() | |
856 | # Find the right frame so we don't pop up inside ipython itself |
|
856 | # Find the right frame so we don't pop up inside ipython itself | |
857 | if hasattr(self,'tb'): |
|
857 | if hasattr(self,'tb') and self.tb is not None: | |
858 | etb = self.tb |
|
858 | etb = self.tb | |
859 | else: |
|
859 | else: | |
860 | etb = self.tb = sys.last_traceback |
|
860 | etb = self.tb = sys.last_traceback | |
861 | while self.tb.tb_next is not None: |
|
861 | while self.tb is not None and self.tb.tb_next is not None: | |
862 | self.tb = self.tb.tb_next |
|
862 | self.tb = self.tb.tb_next | |
863 | if etb and etb.tb_next: |
|
863 | if etb and etb.tb_next: | |
864 | etb = etb.tb_next |
|
864 | etb = etb.tb_next |
General Comments 0
You need to be logged in to leave comments.
Login now