From d765555c3880abfb2787cabf7f1c1bd820e50bd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 7 Feb 2022 10:58:16 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20env=20passed=20to=20sarge?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Should not contain any bytes. --- src/octoprint/plugins/softwareupdate/updaters/pip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/plugins/softwareupdate/updaters/pip.py b/src/octoprint/plugins/softwareupdate/updaters/pip.py index 30df08b6b..a344fda7d 100644 --- a/src/octoprint/plugins/softwareupdate/updaters/pip.py +++ b/src/octoprint/plugins/softwareupdate/updaters/pip.py @@ -101,7 +101,7 @@ def perform_update(target, check, target_version, log_cb=None, online=True, forc logger.debug(f"Target: {target}, executing pip install {install_arg}") pip_args = ["--disable-pip-version-check", "install", install_arg, "--no-cache-dir"] pip_kwargs = { - "env": {"PYTHONWARNINGS": b"ignore:DEPRECATION::pip._internal.cli.base_command"} + "env": {"PYTHONWARNINGS": "ignore:DEPRECATION::pip._internal.cli.base_command"} } if pip_working_directory is not None: pip_kwargs.update(cwd=pip_working_directory)