Show More
@@ -854,11 +854,11 b' class VerboseTB(TBTools):' | |||
|
854 | 854 | with display_trap: |
|
855 | 855 | self.pdb.reset() |
|
856 | 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 | 858 | etb = self.tb |
|
859 | 859 | else: |
|
860 | 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 | 862 | self.tb = self.tb.tb_next |
|
863 | 863 | if etb and etb.tb_next: |
|
864 | 864 | etb = etb.tb_next |
General Comments 0
You need to be logged in to leave comments.
Login now