From 36aa2dd3a315355bf0adfdcd7c65bbddc3a38d2f Mon Sep 17 00:00:00 2001 From: blacktwin Date: Thu, 4 Jun 2020 21:20:54 -0400 Subject: [PATCH] address issue found when running with python3 --- killstream/kill_stream.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/killstream/kill_stream.py b/killstream/kill_stream.py index 0f6f56f..d23a874 100644 --- a/killstream/kill_stream.py +++ b/killstream/kill_stream.py @@ -102,7 +102,10 @@ def hex_to_int(value): def arg_decoding(arg): """Decode args, encode UTF-8""" - return arg.decode(TAUTULLI_ENCODING).encode('UTF-8') + if sys.version_info[0] < 3: + return arg.decode(TAUTULLI_ENCODING).encode('UTF-8') + else: + return arg def debug_dump_vars():