books: Loader.load_none() returns default options_map.
This way it's still safe to assume all the expected keys are there.
This commit is contained in:
parent
3f0b201d16
commit
97d813972b
1 changed files with 3 additions and 2 deletions
|
@ -18,7 +18,8 @@ import datetime
|
|||
|
||||
from pathlib import Path
|
||||
|
||||
from beancount import loader as bc_loader
|
||||
import beancount.loader as bc_loader
|
||||
import beancount.parser.options as bc_options
|
||||
|
||||
from typing import (
|
||||
Any,
|
||||
|
@ -204,4 +205,4 @@ class Loader:
|
|||
'lineno': lineno,
|
||||
}
|
||||
errors: Errors = [Error(source, "no books to load in configuration", None)]
|
||||
return [], errors, {}
|
||||
return [], errors, bc_options.OPTIONS_DEFAULTS.copy()
|
||||
|
|
Loading…
Reference in a new issue