def _expect_success(self, command, text):
        try:
            stdout, stderr, status = self._execute_raw(command, text)
            if not self.expected_returns or status in self.expected_returns:
                return stdout.decode('UTF-8')
        except __HOLE__ as e:
            stdout, stderr, status = (None, str(e), e.errno)

        if self.errors_on_statusbar:
            sublime.status_message(
                'Error %i executing command [%s]: %s' %
                (status, self.get_command_as_str(), stderr))
        print(
            'Error %i executing command [%s]:\n%s\n' %
            (status, self.get_command_as_str(False), stderr))
        return None
dataset/ETHPy150Open tylerl/FilterPipes/filterpipes.py/FilterPipesProcessCommand._expect_success