code: def error_catcher(self, extra_info: Optional[str] = None):
          
          try:
              yield
          except InstaloaderException as err:
              if extra_info:
                  self.error('{}: {}'.format(extra_info, err))
              else:
                  self.error('{}'.format(err))
              if self.raise_all_errors:
                  raise
docs: Context manager to catch, print and record InstaloaderExceptions.
  
          :param extra_info: String to prefix error message with.