address issue found when running with python3

This commit is contained in:
blacktwin 2020-06-04 21:20:54 -04:00
parent 34851652c5
commit 36aa2dd3a3

View File

@ -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():