From 973d2f476f66643dc1180b03cc35f83621ed931f Mon Sep 17 00:00:00 2001 From: Colin Delahunty <72827203+colin99d@users.noreply.github.com> Date: Tue, 1 Feb 2022 18:26:24 -0500 Subject: [PATCH] Debug Patch (#1297) * Remove none error * Noted where issue is beign silenced Co-authored-by: didierlopes.eth --- gamestonk_terminal/parent_classes.py | 1 + terminal.py | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gamestonk_terminal/parent_classes.py b/gamestonk_terminal/parent_classes.py index d8706e9414d..4b702c97a47 100644 --- a/gamestonk_terminal/parent_classes.py +++ b/gamestonk_terminal/parent_classes.py @@ -159,6 +159,7 @@ class BaseController(metaclass=ABCMeta): elif known_args.cmd == "r": known_args.cmd = "reset" + # This is what mutes portfolio issue getattr( self, "call_" + known_args.cmd, diff --git a/terminal.py b/terminal.py index 15c6e26b919..8568c10568d 100644 --- a/terminal.py +++ b/terminal.py @@ -277,9 +277,7 @@ def terminal(jobs_cmds: List[str] = None): # Check if the user wants to reset application if an_input in ("r", "reset") or t_controller.update_succcess: - ret_code = reset( - t_controller.queue if len(t_controller.queue) > 0 else [] - ) + ret_code = reset(t_controller.queue if t_controller.queue else []) if ret_code != 0: print_goodbye() break