fix(admin): add exception handling for SQL retry in freight accounting flow
This commit is contained in:
@@ -139,7 +139,10 @@ class FreightAccountingPage(BasePage):
|
||||
# 无数据 → 执行 SQL 重试
|
||||
if not self._table_has_data():
|
||||
if retry_sql:
|
||||
try:
|
||||
retry_sql()
|
||||
except Exception as e:
|
||||
raise RuntimeError(f"运费核算 SQL 重试失败!单号: {order_no}, 错误: {e}")
|
||||
self._fill_order_no(order_no)
|
||||
self._click_search()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user