浏览代码

修复杀虫灯控制返回值

yf_yzl 2 年之前
父节点
当前提交
9b9c508d20
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      smartfarming/api/views/weather/weather.py

+ 1 - 0
smartfarming/api/views/weather/weather.py

@@ -199,6 +199,7 @@ def qxz_detail(request):
         device_expire = device.device_expire
         device_expire = device.device_expire
         device_expire_time = device.device_expire_time
         device_expire_time = device.device_expire_time
     except:
     except:
+        logger.error(f"气象站数据:{e}")
         raise PortError('device_id',"暂无此设备")
         raise PortError('device_id',"暂无此设备")
     
     
     qxz_list = QXZdata_New.objects.filter(device_id=device_id)
     qxz_list = QXZdata_New.objects.filter(device_id=device_id)