Entropy/Spritz:

- avoid raising sqlite3 OperationalError exceptions on populateCategories


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1922 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
lxnay
2008-05-05 22:46:09 +00:00
parent 34ee13d898
commit ce538451f3
+4 -1
View File
@@ -94,7 +94,10 @@ class EntropyPackages:
self._categoryPackages[category] = pkgsdata
def populateCategories(self):
self.categories = self.Entropy.list_repo_categories()
try:
self.categories = self.Entropy.list_repo_categories()
except self.Entropy.databaseTools.dbapi2.OperationalError:
self.categories.clear()
def getPackages(self,flt):
if flt == 'all':