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
This commit is contained in:
(no author)
2008-03-06 14:40:59 +00:00
parent d9aa916ace
commit 6f94ebe8f8
+8 -1
View File
@@ -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."),