From dd71e3fef87cf09452d985db42aee7e10e4a7a8e Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Wed, 6 Dec 2023 12:27:20 +0100 Subject: [PATCH] fmt force to str --- charge_lnd/fmt.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/charge_lnd/fmt.py b/charge_lnd/fmt.py index 860fad7..cc7fdc2 100644 --- a/charge_lnd/fmt.py +++ b/charge_lnd/fmt.py @@ -35,16 +35,16 @@ def print_chanid(chan_id): return "%sx%sx%s" % lnd_to_cl_scid(chan_id) def col_lo(s): - return str(colored(s,'white', attrs=['dark'])) + return str(colored(str(s),'white', attrs=['dark'])) def col_hi(s): - return str(colored(s,'white', attrs=['bold'])) + return str(colored(str(s),'white', attrs=['bold'])) def col_name(s): - return str(colored(s,'blue', attrs=['bold'])) + return str(colored(str(s),'blue', attrs=['bold'])) def col_err(s): - return str(colored(s,'red', attrs=['bold'])) + return str(colored(str(s),'red', attrs=['bold'])) def col_val(s): - return str(colored(s,'yellow', attrs=['bold'])) + return str(colored(str(s),'yellow', attrs=['bold']))