From cd91270dc6298812f9f157f4db3c401cb06cd38e Mon Sep 17 00:00:00 2001 From: "J.P" <70083705+stapmoshun@users.noreply.github.com> Date: Sat, 24 Feb 2024 21:05:35 -0500 Subject: [PATCH] towards pytests --- src/cloudmesh/common/console.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cloudmesh/common/console.py b/src/cloudmesh/common/console.py index 575321b..33c49bf 100644 --- a/src/cloudmesh/common/console.py +++ b/src/cloudmesh/common/console.py @@ -371,8 +371,8 @@ def cprint(message, color="BLUE", prefix=""): if isinstance(message, Text): RichConsole.print(prefix, message, sep="") else: - if color in theme_color: - color = theme_color[color] + if color in Console.theme_color: + color = Console.theme_color[color] RichConsole.print(prefix + message, style=color) @staticmethod