minor fix on util.records(): fail immediately if tracks folder is missing
This commit is contained in:
parent
baedf02d78
commit
cb994dc238
1 changed files with 2 additions and 4 deletions
6
util.py
6
util.py
|
@ -145,10 +145,8 @@ def records(context, name, factory, storage=None):
|
||||||
if name in (opts.scopes.storage.records or []):
|
if name in (opts.scopes.storage.records or []):
|
||||||
if storage is None:
|
if storage is None:
|
||||||
storage = getStorage(context)
|
storage = getStorage(context)
|
||||||
cont = storage.create(factory)
|
return storage.create(factory)
|
||||||
else:
|
return root.getRecordManager()[name]
|
||||||
cont = root.getRecordManager().get(name)
|
|
||||||
return cont
|
|
||||||
|
|
||||||
|
|
||||||
# UID stuff
|
# UID stuff
|
||||||
|
|
Loading…
Add table
Reference in a new issue