Commit d38a2b75 authored by Sébastien Luttringer's avatar Sébastien Luttringer

PipeFile should only raise ISError

parent d49512e6
......@@ -111,7 +111,7 @@ class PipeFile(object):
elif ftype == "ssh":
raise IOError("URL type not supported")
raise ISError("URL type not supported")
# init progress bar
# we use 0 because a null file is cannot show a progression during write
if self.size == 0:
......@@ -206,7 +206,7 @@ class PipeFile(object):
except Exception as e:
# FIXME: unable to open file
raise IOError(e)
raise ISError(e)
def close(self):
if self.progressbar:
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