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))