From fe146050345a71b6aa271d631ae5c655e910aa67 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 20 Jun 2022 08:10:41 -0400 Subject: [PATCH] Fix null case return --- piker/pp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/piker/pp.py b/piker/pp.py index 1f09c2d7..d0809f88 100644 --- a/piker/pp.py +++ b/piker/pp.py @@ -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}' )