输出回调处理 :param line: :return:
(self, line)
| 118 | return issues |
| 119 | |
| 120 | def analyze_callback(self, line): |
| 121 | """ |
| 122 | 输出回调处理 |
| 123 | :param line: |
| 124 | :return: |
| 125 | """ |
| 126 | subprocc_log(line) |
| 127 | if ( |
| 128 | line.find("brew install findutils pleases!") != -1 |
| 129 | or line.find("ModuleNotFoundError: No module named") != -1 |
| 130 | ): |
| 131 | raise AnalyzeTaskError(f"请确认cobra是否安装成功:\n{self.install_steps}") |
| 132 | |
| 133 | def check_tool_usable(self, tool_params): |
| 134 | """ |
nothing calls this directly
no test coverage detected