diff options
author | catboxanon <122327233+catboxanon@users.noreply.github.com> | 2023-08-28 15:17:47 +0000 |
---|---|---|
committer | catboxanon <122327233+catboxanon@users.noreply.github.com> | 2023-08-28 15:17:47 +0000 |
commit | 99acbd5ebe3e43e7d07905c7fc274b321cc905be (patch) | |
tree | 5cdb15b2145363f224d05719de5d679c974e267c | |
parent | d1c93c38220d62485f8e14e6331f9b6b5e1e3259 (diff) | |
download | stable-diffusion-webui-gfx803-99acbd5ebe3e43e7d07905c7fc274b321cc905be.tar.gz stable-diffusion-webui-gfx803-99acbd5ebe3e43e7d07905c7fc274b321cc905be.tar.bz2 stable-diffusion-webui-gfx803-99acbd5ebe3e43e7d07905c7fc274b321cc905be.zip |
Don't print blank stdout in extension installers
-rw-r--r-- | modules/launch_utils.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/launch_utils.py b/modules/launch_utils.py index 7e4d5a61..43b986c6 100644 --- a/modules/launch_utils.py +++ b/modules/launch_utils.py @@ -228,7 +228,9 @@ def run_extension_installer(extension_dir): env = os.environ.copy()
env['PYTHONPATH'] = f"{os.path.abspath('.')}{os.pathsep}{env.get('PYTHONPATH', '')}"
- print(run(f'"{python}" "{path_installer}"', errdesc=f"Error running install.py for extension {extension_dir}", custom_env=env))
+ stdout = run(f'"{python}" "{path_installer}"', errdesc=f"Error running install.py for extension {extension_dir}", custom_env=env)
+ if stdout:
+ print(stdout)
except Exception as e:
errors.report(str(e))
|