Show More
@@ -620,7 +620,11 b' class Pdb(OldPdb):' | |||||
620 | Take a number as argument as an (optional) number of context line to |
|
620 | Take a number as argument as an (optional) number of context line to | |
621 | print""" |
|
621 | print""" | |
622 | if arg: |
|
622 | if arg: | |
623 |
|
|
623 | try: | |
|
624 | context = int(arg) | |||
|
625 | except ValueError as err: | |||
|
626 | self.error(err) | |||
|
627 | return | |||
624 | self.print_stack_trace(context) |
|
628 | self.print_stack_trace(context) | |
625 | else: |
|
629 | else: | |
626 | self.print_stack_trace() |
|
630 | self.print_stack_trace() |
General Comments 0
You need to be logged in to leave comments.
Login now