瀏覽代碼

修复杀虫灯控制返回值

yf_yzl 3 年之前
父節點
當前提交
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_time = device.device_expire_time
     except:
+        logger.error(f"气象站数据:{e}")
         raise PortError('device_id',"暂无此设备")
     
     qxz_list = QXZdata_New.objects.filter(device_id=device_id)