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

cmd_trap: convert json reponse to string for writing to file

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

+ 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"
         )