We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ffc9c8f + 07d0d98 commit 553544fCopy full SHA for 553544f
1 file changed
webdavfs/webdavfs.py
@@ -306,7 +306,7 @@ def removedir(self, path):
306
307
def setbytes(self, path, contents):
308
if not isinstance(contents, bytes):
309
- raise ValueError('contents must be bytes')
+ raise TypeError('contents must be bytes')
310
_path = self.validatepath(path)
311
bin_file = io.BytesIO(contents)
312
with self._lock:
0 commit comments