code: def do_retry(self, arg):
          
          prev_line = self.curframe.f_lineno - 1
          # Make sure not to jump to the middle of the previous statement
          while True:
              try:
                  self.curframe.f_lineno = prev_line
                  break
  
              except ValueError:
                  prev_line -= 1
  
          self.do_jump(prev_line)
          self.do_continue(arg)
          return 1
docs: Rerun the previous command.