def _run_command(self, command, type, input=None): def error_handler(cmd, error): patt = re.compile(CVSPASS_ERROR_MESSAGE) return patt.match(error) is not None command.set_error_handler(error_handler) Repository._run_command(self, command, type, input)
def _run_command (self, command, type, input = None): def error_handler (cmd, error): patt = re.compile (CVSPASS_ERROR_MESSAGE) return patt.match (error) is not None command.set_error_handler (error_handler) Repository._run_command (self, command, type, input)
def _run_command(self, command, type, input=None): try: Repository._run_command(self, command, type, input) except CommandRunningError, e: # Read error message question = e.error.split('\n')[-1] if question.strip() == SSL_CERTIFICATE_QUESTION: Repository._run_command(self, command, type, 'p\n')
def _run_command(self, command, type, input=None): try: Repository._run_command(self, command, type, input) except CommandRunningError, e: # Read error message question = e.error.split('\n')[-1] if question.strip() == SSL_CERTIFICATE_QUESTION: Repository._run_command(command, type, 'p\n')