Skip to content

Commit 3bcd33c

Browse files
authored
fix code format
1 parent f338088 commit 3bcd33c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

backend/plugin/tools.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,7 @@ def install_requirements(plugin: str | None) -> None:
319319
pip_install = [sys.executable, '-m', 'pip', 'install', '-r', requirements_file]
320320
if settings.PLUGIN_PIP_CHINA:
321321
pip_install.extend(['-i', settings.PLUGIN_PIP_INDEX_URL])
322-
subprocess.check_call(
323-
ensurepip_install, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL
324-
)
322+
subprocess.check_call(ensurepip_install, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
325323
subprocess.check_call(pip_install, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
326324
except subprocess.CalledProcessError as e:
327325
raise PluginInstallError(f'插件 {plugin} 依赖安装失败:{e}') from e

0 commit comments

Comments
 (0)