Fix cookie generator Python version compatibility#266
Merged
grantdfoster merged 1 commit intomainfrom Feb 25, 2026
Merged
Conversation
Update Dockerfile.cookies.generator base image from python:3.9-slim to python:3.11-slim to support the newer union type syntax (str | None) used in cookie_grabber.py. Fixes #256 Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a Python version compatibility issue in the cookie generator Dockerfile that was causing a runtime error when using modern union type syntax.
Changes:
- Updated the base Docker image from
python:3.9-slimtopython:3.11-slimin the cookie generator Dockerfile to support the union type syntax (str | None) used incookie_grabber.py
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes the Python version compatibility issue in the cookie generator Dockerfile.
Problem
The
Dockerfile.cookies.generatorwas usingpython:3.9-slimas the base image, butscripts/cookie_grabber.pyuses the newer union type syntaxstr | None(introduced in Python 3.10+).This caused the following error when running the container:
Solution
Updated the base image from
python:3.9-slimtopython:3.11-slimto support the modern Python union type syntax.Changes
Dockerfile.cookies.generator: ChangedFROM python:3.9-slimtoFROM python:3.11-slimFixes #256
Made with Cursor