diff --git a/src/cloudmesh/common/console.py b/src/cloudmesh/common/console.py index 3e323ac..78767b7 100644 --- a/src/cloudmesh/common/console.py +++ b/src/cloudmesh/common/console.py @@ -367,8 +367,6 @@ def cprint(message, color="BLUE", prefix=""): message = message or "" prefix = prefix or "" #RichConsole.print(prefix + message, style=color.lower()) - c = Console.theme[color.upper()] - RichConsole.print(prefix + message, style=c) # print( # Console.theme_color[color] + prefix + message + Console.theme_color["ENDC"] @@ -376,7 +374,8 @@ def cprint(message, color="BLUE", prefix=""): if isinstance(message, Text): RichConsole.print(prefix, message, sep="") else: - RichConsole.print(prefix + message, style=Console.theme_color[color.upper()]) + c = Console.theme[color.upper()] + RichConsole.print(prefix + message, style=c) @staticmethod def text(color="RED", prefix=None, message=None):