Przeglądaj źródła

cmd_tap: decode() on rpc command response

Daniel-Constantin Mierla 5 lat temu
rodzic
commit
85eb141810
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      kamcli/commands/cmd_trap.py

+ 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:
         outfile.write(olinestart)
-        outfile.write(response)
+        outfile.write(response.decode())
         outfile.write(olineend)