##// END OF EJS Templates
Backport PR #12844: Fix UnboundLocalError in IPDB when running 'context' command without argument
Matthias Bussonnier -
Show More
@@ -805,9 +805,9 b' class Pdb(OldPdb):'
805 new_context = int(context)
805 new_context = int(context)
806 if new_context <= 0:
806 if new_context <= 0:
807 raise ValueError()
807 raise ValueError()
808 self.context = new_context
808 except ValueError:
809 except ValueError:
809 self.error("The 'context' command requires a positive integer argument.")
810 self.error("The 'context' command requires a positive integer argument.")
810 self.context = new_context
811
811
812
812
813 class InterruptiblePdb(Pdb):
813 class InterruptiblePdb(Pdb):
General Comments 0
You need to be logged in to leave comments. Login now