Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle None values in pgn_queue #1095

Merged
merged 2 commits into from
Mar 16, 2025

Conversation

MarkZH
Copy link
Collaborator

@MarkZH MarkZH commented Mar 16, 2025

Type of pull request:

  • Bug fix
  • Feature
  • Other

Description:

Sometimes, probably when a lichess-bot session is ended with Ctrl-C, the function that handles the pgn_queue will receive a None value. This causes an error and prevents PGN files from being written.

This change ignores None values when they arrive from the queue.

Related Issues:

Checklist:

  • I have read and followed the contribution guidelines.
  • I have added necessary documentation (if applicable).
  • The changes pass all existing tests.

Screenshots/logs (if applicable):

Sorry, something went wrong.

MarkZH added 2 commits March 16, 2025 01:17
Sometimes, probably when a lichess-bot session is ended with Ctrl-C, the
function that handles the pgn_queue will receive a None value. This
causes an error and prevents PGN files from being written.

This change ignores None values when they arrive from the queue.
@AttackingOrDefending AttackingOrDefending merged commit d08fcd7 into lichess-bot-devs:master Mar 16, 2025
23 checks passed
@MarkZH MarkZH deleted the pgn-queue-fix branch March 16, 2025 10:32
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.

None yet

2 participants