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

PipeFile should only raise ISError

parent d49512e6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -111,7 +111,7 @@ class PipeFile(object):
            elif ftype == "ssh":
                self._open_ssh(path)
            else:
                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):
            self.fo.set_pipelined(True)
        except Exception as e:
            # FIXME: unable to open file
            raise IOError(e)
            raise ISError(e)

    def close(self):
        if self.progressbar: