chenjunkai 6 tahun lalu
induk
melakukan
31ea0e14c9
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      Controller/OTAEquipment.py

+ 1 - 1
Controller/OTAEquipment.py

@@ -33,7 +33,7 @@ def addNewEquipmentVersion(deviceContent, token,response):
                 try:
                     deviceData = json.loads(deviceContent)
                 except Exception as e:
-                    return response.json(803)
+                    return response.json(803,repr(e))
                 else:
                     version = deviceData.get('version', None)
                     if version is not None: