From 88ecfbdb650e50672121203540188d8a757cf25c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 27 Jan 2020 11:58:17 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20another=20py2=20vs=203=20i?= =?UTF-8?q?ssue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #3431 --- src/octoprint/server/api/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/server/api/__init__.py b/src/octoprint/server/api/__init__.py index 5b66a6379..ae209beb3 100644 --- a/src/octoprint/server/api/__init__.py +++ b/src/octoprint/server/api/__init__.py @@ -387,7 +387,7 @@ def _test_path(data): try: test_path = os.path.join(path, ".testballoon.txt") with io.open(test_path, 'wb') as f: - f.write("Test") + f.write(b"Test") os.remove(test_path) except Exception: logging.getLogger(__name__).exception("Error while testing if {} is really writable".format(path))