chore: Clean up blank lines and enhance code organization
- Removed excessive blank lines from multiple Python scripts and configuration files to improve readability and maintainability. - Ensured consistent formatting across the project, contributing to a more organized codebase. - Added new files for testing and analysis, including `test_screenshot_error_handling.py` and `test_screenshot_reuse_optimization.py`, to improve testing coverage and functionality.
This commit is contained in:
1 parent
7db9864848
commit
478ae69052
85 files changed
+2879
-383
No files matched your search
@@ -9,9 +9,12 @@ from datetime import datetime, timedelta
|
||||
import re
|
||||
|
||||
try:
|
||||
from path_config import get_error_log_path
|
||||
from path_config import get_error_log_path # type: ignore[assignment]
|
||||
HAS_LOGGING = True
|
||||
except ImportError:
|
||||
# 如果导入失败,提供占位符函数
|
||||
def get_error_log_path():
|
||||
return "logs/error.log"
|
||||
HAS_LOGGING = False
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user