添加处理locationid异常的保护
This commit is contained in:
parent
71aae3af92
commit
f533ff3ea7
@ -27,7 +27,7 @@ def get_area_by_locationid(ldid):
|
||||
if data:
|
||||
return data[0][0].replace("[", "").replace("]", "").replace('"', "")
|
||||
else:
|
||||
log.error(f"get area from location failed!,sql={sql}")
|
||||
log.error(f"get area from location failed!,sql={sql},idld={ldid}")
|
||||
return area
|
||||
|
||||
|
||||
@ -184,7 +184,7 @@ def send_cache_data():
|
||||
if my_redis.sismember(key, values):
|
||||
my_redis.srem(key, values)
|
||||
my_redis.expire(f"adinfo::{values}::info", 1)
|
||||
log.info(f"remove {id} from {key} success!")
|
||||
#log.info(f"remove {id} from {key} success!")
|
||||
except Exception:
|
||||
log.error("拆解过期数据出错!", exc_info=True)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user