🐛 Fix another py2 vs 3 issue

Closes #3431
This commit is contained in:
Gina Häußge committed 2020-01-27 11:58:17 +01:00
1 parent 8087967683
commit 88ecfbdb65
1 file changed
+1 -1
+1 -1
View File
@@ -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))