Skip to content

Commit

Permalink
Merge pull request #6 from althonos/master
Browse files Browse the repository at this point in the history
Fix `setbytes` raising TypeError since fs 2.0.12`
  • Loading branch information
zopyx authored Oct 16, 2017
2 parents ffc9c8f + 07d0d98 commit 553544f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webdavfs/webdavfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def removedir(self, path):

def setbytes(self, path, contents):
if not isinstance(contents, bytes):
raise ValueError('contents must be bytes')
raise TypeError('contents must be bytes')
_path = self.validatepath(path)
bin_file = io.BytesIO(contents)
with self._lock:
Expand Down

0 comments on commit 553544f

Please sign in to comment.