From 7e15bf4172ff43de83ecd47b1045f36fe1e8130b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=85=89-k?= <36470587+kxgx@users.noreply.github.com> Date: Thu, 16 Jan 2025 09:52:03 +0800 Subject: [PATCH] Update weather.py --- bin/weather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/weather.py b/bin/weather.py index fb03f0f..6f6e47b 100644 --- a/bin/weather.py +++ b/bin/weather.py @@ -35,7 +35,7 @@ def get_area_id(city_name): for district, info in districts.items(): if info['NAMECN'] == city_name: return info['AREAID'] - logging.error("城市名称 '%s' 在城市数据中未找到", city_name) + logging.error("城市名称 '%s' 在城市数据中未找到,将使用默认城市信息", city_name) else: logging.error("从city.js接收到的数据为空") except requests.RequestException as e: