Commit e81be54c by rfkelly0

catch and report ENOSPC errors in convert_os_errors

parent 6ba20a23
......@@ -182,6 +182,8 @@ def convert_os_errors(func):
raise ResourceInvalidError(path,opname=opname,details=e)
if e.errno == errno.EOPNOTSUPP:
raise UnsupportedError(opname,details=e)
if e.errno == errno.ENOSPC:
raise StorageSpaceError(opname,details=e)
# Sometimes windows gives some random errors...
if sys.platform == "win32":
if e.errno in (13,):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment