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 storage is None:
|
||||
storage = getStorage(context)
|
||||
cont = storage.create(factory)
|
||||
else:
|
||||
cont = root.getRecordManager().get(name)
|
||||
return cont
|
||||
return storage.create(factory)
|
||||
return root.getRecordManager()[name]
|
||||
|
||||
|
||||
# UID stuff
|
||||
|
|
Loading…
Add table
Reference in a new issue