chenjunkai 6 gadi atpakaļ
vecāks
revīzija
31ea0e14c9
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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: