From da1940cc8e66606da824edc45ac23a8be809693f Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Sat, 4 Apr 2020 00:58:02 -0500 Subject: [PATCH] fix circles escapeansi being passed bytes --- static-data/default-plugins/circles/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static-data/default-plugins/circles/main.py b/static-data/default-plugins/circles/main.py index 0e75dc8b..66178a8c 100755 --- a/static-data/default-plugins/circles/main.py +++ b/static-data/default-plugins/circles/main.py @@ -106,7 +106,7 @@ class OnionrFlow: content = block.getContent() # Escape new lines, remove trailing whitespace, and escape ansi sequences content = escapeansi.escape_ANSI(content.replace( - '\n', '\\n').replace('\r', '\\r').strip()) + b'\n', b'\\n').replace(b'\r', b'\\r').strip().decode('utf-8')) logger.info(block.getDate().strftime( "%m/%d %H:%M") + ' - ' + logger.colors.reset + content, prompt=False, terminal=True) self.alreadyOutputed.append(b_hash)