Don't require map (yet) in backend modules

symbol_search
Tyler Goodlet 2021-05-27 11:43:07 -04:00
parent ec6ea32dda
commit 50aff72f8e
1 changed files with 5 additions and 1 deletions

View File

@ -419,8 +419,12 @@ async def install_brokerd_search(
provider_name=brokermod.name,
search_routine=search,
pause_period=brokermod._search_conf.get('pause_period', 0.0616),
# TODO: should be make this a required attr of
# a backend module?
pause_period=getattr(
brokermod, '_search_conf', {}
).get('pause_period', 0.0616),
):
yield