Skip to content

Improve error handling with try/except (no logic change)#2

Open
yjxuestc0919 wants to merge 1 commit intoSnallQiu:masterfrom
yjxuestc0919:master
Open

Improve error handling with try/except (no logic change)#2
yjxuestc0919 wants to merge 1 commit intoSnallQiu:masterfrom
yjxuestc0919:master

Conversation

@yjxuestc0919
Copy link

The previous script will directly exit the course-grabbing script under certain error conditions (such as server rate limitations or error situations, etc.), thus failing to achieve the effect of continuous monitoring and course-grabbing. This PR improves the program's robustness by adding try/except blocks around potential failure points and NOT change the basic logic.

  • Prevents unexpected crashes.

  • Ensures the program continues running when minor errors occur.

  • No changes were made to the core business logic or output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant