style: ruff format security_bars.py(修复 ci.yml format 检查)

合并 e3e8dd4 时采用远程版本,但其 _log.warning 字符串换行未跑
ruff format,导致 ci.yml 的 format 检查失败。纯格式调整,无逻辑变化。
This commit is contained in:
Justin Gu
2026-07-07 15:27:20 +08:00
parent ecd6e298f5
commit 27a8ab1c76
+2 -4
View File
@@ -85,8 +85,7 @@ class GetSecurityBarsCmd(BaseCommand[list[SecurityBar]]):
# 成功解析的前若干条,避免一条坏数据让整页 500。
if bars:
_log.warning(
"K线响应在第 %d/%d 条处被截断(%s),已丢弃末尾残缺记录,"
"返回前 %d",
"K线响应在第 %d/%d 条处被截断(%s),已丢弃末尾残缺记录,返回前 %d",
i + 1,
ret_count,
e,
@@ -154,8 +153,7 @@ class GetIndexBarsCmd(GetSecurityBarsCmd):
except TdxDecodeError as e:
if bars:
_log.warning(
"指数K线响应在第 %d/%d 条处被截断(%s),已丢弃末尾残缺记录,"
"返回前 %d",
"指数K线响应在第 %d/%d 条处被截断(%s),已丢弃末尾残缺记录,返回前 %d",
i + 1,
ret_count,
e,