mirror of
https://github.com/python-kasa/python-kasa.git
synced 2026-11-22 05:53:33 +00:00
Fix CLI echo of non-string output without rich (#1846)
Co-authored-by: junkerderprovinz <jdp@braethoria.com> Co-authored-by: mash-graz <13013641+mash-graz@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
3bf95247d4
commit
765c4dae3c
@@ -41,7 +41,7 @@ except ImportError:
|
||||
|
||||
@wraps(echo_func)
|
||||
def wrapper(message=None, *args, **kwargs) -> None:
|
||||
if message is not None:
|
||||
if isinstance(message, str):
|
||||
message = rich_formatting.sub("", message)
|
||||
echo_func(message, *args, **kwargs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user