trains/backend_interface/task/repo/detectors.py
def _get_command_output(self, path, name, command):
        """ Run a command and return its output """
        try:
            return get_command_output(command, path)

        except (CalledProcessError, UnicodeDecodeError) as ex:
            _logger.warning("Can't get {} information for {} repo in {}".format(name, self.type_name, path))
            # full details only in debug
            _logger.debug(
                "Can't get {} information for {} repo in {}: {}".format(
                    name, self.type_name, path, str(ex)
                )
            )
            return ""
 Run a command and return its output 
Run a command and return its output
Run a command and return its output
def _get_command_output(self, path, name, command):
        try:
            return get_command_output(command, path)
        except (CalledProcessError, UnicodeDecodeError) as ex:
            _logger.warning("Can't get {} information for {} repo in {}".format(name, self.type_name, path))
            _logger.debug(
                "Can't get {} information for {} repo in {}: {}".format(
                    name, self.type_name, path, str(ex)
                )
            )
            return ""
def _get_command_output ( self , path , name , command ) : try : return get_command_output ( command , path ) except ( CalledProcessError , UnicodeDecodeError ) as ex : _logger . warning ( "Can't get {} information for {} repo in {}" . format ( name , self . type_name , path ) ) _logger . debug ( "Can't get {} information for {} repo in {}: {}" . format ( name , self . type_name , path , str ( ex ) ) ) return ""
Run a command and return its output
Run a command and return its output
""" Run a command and return its output """ # full details only in debug
self
path
name
command