Commit 1214618f authored by Vincent Pelletier's avatar Vincent Pelletier Committed by Eteri

ZSQLCatalog: Some random trivial cleanup.

parent c9a2adde
...@@ -960,8 +960,7 @@ class Catalog(Folder, ...@@ -960,8 +960,7 @@ class Catalog(Folder,
""" """
Clears the catalog by calling a list of methods Clears the catalog by calling a list of methods
""" """
methods = self.sql_clear_catalog for method_name in self.sql_clear_catalog:
for method_name in methods:
method = getattr(self, method_name) method = getattr(self, method_name)
try: try:
method() method()
...@@ -971,7 +970,6 @@ class Catalog(Folder, ...@@ -971,7 +970,6 @@ class Catalog(Folder,
LOG('SQLCatalog', WARNING, LOG('SQLCatalog', WARNING,
'could not clear catalog with %s' % method_name, error=sys.exc_info()) 'could not clear catalog with %s' % method_name, error=sys.exc_info())
raise raise
# Reserved uids have been removed. # Reserved uids have been removed.
self._clearReserved() self._clearReserved()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment