Fix `brokers.toml` load for `kraken` backend
parent
7c96c9fafe
commit
264246d89b
|
@ -70,12 +70,18 @@ _symbol_info_translation: dict[str, str] = {
|
||||||
|
|
||||||
|
|
||||||
def get_config() -> dict[str, Any]:
|
def get_config() -> dict[str, Any]:
|
||||||
|
'''
|
||||||
|
Load our section from `piker/brokers.toml`.
|
||||||
|
|
||||||
conf, path = config.load()
|
'''
|
||||||
section = conf.get('kraken')
|
conf, path = config.load(
|
||||||
|
conf_name='brokers',
|
||||||
if section is None:
|
touch_if_dne=True,
|
||||||
log.warning(f'No config section found for kraken in {path}')
|
)
|
||||||
|
if (section := conf.get('kraken')) is None:
|
||||||
|
log.warning(
|
||||||
|
f'No config section found for kraken in {path}'
|
||||||
|
)
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
return section
|
return section
|
||||||
|
|
Loading…
Reference in New Issue