Fix null case return
parent
68b32208de
commit
fe14605034
|
@ -373,7 +373,7 @@ def load_pps_from_ledger(
|
||||||
|
|
||||||
if not ledger:
|
if not ledger:
|
||||||
# null case, no ledger file with content
|
# null case, no ledger file with content
|
||||||
return {}, {}
|
return {}
|
||||||
|
|
||||||
brokermod = get_brokermod(brokername)
|
brokermod = get_brokermod(brokername)
|
||||||
records = brokermod.norm_trade_records(ledger)
|
records = brokermod.norm_trade_records(ledger)
|
||||||
|
@ -572,6 +572,7 @@ def load_pps_from_toml(
|
||||||
acctid,
|
acctid,
|
||||||
)
|
)
|
||||||
if not pps:
|
if not pps:
|
||||||
|
breakpoint()
|
||||||
log.warning(
|
log.warning(
|
||||||
f'No trade history could be loaded for {brokername}:{acctid}'
|
f'No trade history could be loaded for {brokername}:{acctid}'
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue