Fix null case return

lifo_pps_ib
Tyler Goodlet 2022-06-20 08:10:41 -04:00
parent 68b32208de
commit fe14605034
1 changed files with 2 additions and 1 deletions

View File

@ -373,7 +373,7 @@ def load_pps_from_ledger(
if not ledger:
# null case, no ledger file with content
return {}, {}
return {}
brokermod = get_brokermod(brokername)
records = brokermod.norm_trade_records(ledger)
@ -572,6 +572,7 @@ def load_pps_from_toml(
acctid,
)
if not pps:
breakpoint()
log.warning(
f'No trade history could be loaded for {brokername}:{acctid}'
)