فهرست منبع

cmd_trap: convert json reponse to string for writing to file

Daniel-Constantin Mierla 5 سال پیش
والد
کامیت
cd90f41b15
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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"
         )