chenjunkai %!s(int64=6) %!d(string=hai) anos
pai
achega
31ea0e14c9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: