2
0
Эх сурвалжийг харах

cmd_tap: decode() on rpc command response

Daniel-Constantin Mierla 5 жил өмнө
parent
commit
85eb141810

+ 1 - 1
kamcli/commands/cmd_trap.py

@@ -141,5 +141,5 @@ def cmd_trap_rpc_print(ctx, response, params=None):
         )
         )
     with open(ofile, "a") as outfile:
     with open(ofile, "a") as outfile:
         outfile.write(olinestart)
         outfile.write(olinestart)
-        outfile.write(response)
+        outfile.write(response.decode())
         outfile.write(olineend)
         outfile.write(olineend)