Skip to content

Commit 553544f

Browse files
authored
Merge pull request #6 from althonos/master
Fix `setbytes` raising TypeError since fs 2.0.12`
2 parents ffc9c8f + 07d0d98 commit 553544f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webdavfs/webdavfs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ def removedir(self, path):
306306

307307
def setbytes(self, path, contents):
308308
if not isinstance(contents, bytes):
309-
raise ValueError('contents must be bytes')
309+
raise TypeError('contents must be bytes')
310310
_path = self.validatepath(path)
311311
bin_file = io.BytesIO(contents)
312312
with self._lock:

0 commit comments

Comments
 (0)