From d38a2b7552f63b3871d757cbbd1975d35d6d44fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Luttringer?= Date: Thu, 11 Apr 2013 15:24:02 +0200 Subject: [PATCH] PipeFile should only raise ISError --- installsystems/tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installsystems/tools.py b/installsystems/tools.py index 065c146..b997f06 100644 --- a/installsystems/tools.py +++ b/installsystems/tools.py @@ -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: -- GitLab