From 72bcff44b6c60301cb95bf9db0c32c0a99c3fe24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20A=C5=9F=C4=B1c=C4=B1?= Date: Wed, 15 Jun 2011 09:03:57 +0000 Subject: [PATCH] addrepo: Handle all pisi errors occurred when updating the new repo BUG:FIXED:18309 --- pisi/cli/addrepo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pisi/cli/addrepo.py b/pisi/cli/addrepo.py index 4b8f8c35..d88bd8c0 100644 --- a/pisi/cli/addrepo.py +++ b/pisi/cli/addrepo.py @@ -70,7 +70,7 @@ NB: We support only local files (e.g., /a/b/c) and http:// URIs at the moment if not ctx.get_option('no_fetch'): try: pisi.api.update_repo(name) - except (pisi.fetcher.FetchError, IOError): + except (pisi.Error, IOError): warning = _("%s repository could not be reached. Removing %s from system.") % (name, name) self.warn_and_remove(warning, name) else: