Commit 2cca6f4c authored by Hanno Schlichting's avatar Hanno Schlichting

Account for ZopeLite

parent b2bbe420
...@@ -97,12 +97,13 @@ def startup(): ...@@ -97,12 +97,13 @@ def startup():
# can indeed be opened. This avoids surprises during runtime when traversal # can indeed be opened. This avoids surprises during runtime when traversal
# to some database mountpoint fails as the underlying storage cannot be # to some database mountpoint fails as the underlying storage cannot be
# opened at all # opened at all
for mount, name in dbtab.listMountPaths(): if dbtab is not None:
_db = dbtab.getDatabase(mount) for mount, name in dbtab.listMountPaths():
_conn = _db.open() _db = dbtab.getDatabase(mount)
_conn.close() _conn = _db.open()
del _conn _conn.close()
del _db del _conn
del _db
notify(DatabaseOpened(DB)) notify(DatabaseOpened(DB))
......
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