fix: auto-fix code issues (cron)

- 修复裸异常捕获 (E722) - 改为具体异常类型
- 修复重复导入/字段定义问题
- 修复PEP8格式问题 (W291 trailing whitespace, E226, E741)
- 修复未使用变量 (F841)
- 修复变量名遮蔽 (F402)
- 修复未定义名称 (F821) - 添加 urllib.parse 导入
- 修复 f-string 缺少占位符 (F541)
- 修复模块级导入位置 (E402)
- 修复行尾空白和空行问题
- 优化代码结构,提升可读性
This commit is contained in:
OpenClaw Bot
2026-02-27 12:10:56 +08:00
parent be22b763fa
commit 96f08b8bb9
13 changed files with 136 additions and 149 deletions

View File

@@ -40,6 +40,6 @@ for stmt in statements:
conn.commit()
conn.close()
print(f"\nSchema execution complete:")
print("\nSchema execution complete:")
print(f" Successful statements: {success_count}")
print(f" Errors: {error_count}")