From 6f94ebe8f89e8fc20b4f2c97fb4e8a53ab3e591b Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@cd1c1023-2f26-0410-ae45-c471fc1f0318> Date: Thu, 6 Mar 2008 14:40:59 +0000 Subject: [PATCH] do not crash if fetch_advisories raises an exception git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1420 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- libraries/entropy.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libraries/entropy.py b/libraries/entropy.py index 189359d79..e6f71a12e 100644 --- a/libraries/entropy.py +++ b/libraries/entropy.py @@ -4361,7 +4361,14 @@ class RepoInterface: self.Entropy.generate_cache(depcache = self.Entropy.xcache, configcache = False, client_purge = False) # update Security Advisories if self.fetchSecurity: - self.Entropy.Security.fetch_advisories() + try: + self.Entropy.Security.fetch_advisories() + except Exception, e: + self.Entropy.updateProgress( red("Advisories fetch error: %s: %s.") % (str(Exception),str(e),), + importance = 1, + type = "warning", + header = darkred(" @@ ") + ) if self.syncErrors: self.Entropy.updateProgress( red("Something bad happened. Please have a look."),