address issue found when running with python3
This commit is contained in:
parent
34851652c5
commit
36aa2dd3a3
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user