From b9cfa8257021b6027ebef8e7e89cfa0461732cd6 Mon Sep 17 00:00:00 2001 From: hjoaquim Date: Thu, 9 Feb 2023 11:26:32 +0000 Subject: [PATCH] openbb is special --- openbb_terminal/keys_controller.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/openbb_terminal/keys_controller.py b/openbb_terminal/keys_controller.py index 11315c96b4f..3110bfb5cd7 100644 --- a/openbb_terminal/keys_controller.py +++ b/openbb_terminal/keys_controller.py @@ -51,7 +51,14 @@ class KeysController(BaseController): # pylint: disable=too-many-public-methods def check_keys_status(self) -> None: """Check keys status""" for api in tqdm(self.API_LIST, desc="Checking keys status"): - self.status_dict[api] = getattr(keys_model, "check_" + str(api) + "_key")() + if api == "openbb": + self.status_dict[api] = getattr( + keys_model, "check_" + str(api) + "_personal_access_token" + )() + else: + self.status_dict[api] = getattr( + keys_model, "check_" + str(api) + "_key" + )() def print_help(self): """Print help"""