Forráskód Böngészése

cmd_trap: convert json reponse to string for writing to file

Daniel-Constantin Mierla 5 éve
szülő
commit
cd90f41b15
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      kamcli/commands/cmd_trap.py

+ 1 - 1
kamcli/commands/cmd_trap.py

@@ -46,7 +46,7 @@ def cmd_trap_print(ctx, response, params=None):
         outfile.write(
             "---start core.psx -------------------------------------------------------\n"
         )
-        outfile.write(response)
+        outfile.write(str(response))
         outfile.write(
             "---end core.psx -------------------------------------------------------\n\n"
         )