Skip to content

Fix cookie generator Python version compatibility#266

Merged
grantdfoster merged 1 commit intomainfrom
fix/cookie-generator-python-version
Feb 25, 2026
Merged

Fix cookie generator Python version compatibility#266
grantdfoster merged 1 commit intomainfrom
fix/cookie-generator-python-version

Conversation

@grantdfoster
Copy link
Contributor

Summary

This PR fixes the Python version compatibility issue in the cookie generator Dockerfile.

Problem

The Dockerfile.cookies.generator was using python:3.9-slim as the base image, but scripts/cookie_grabber.py uses the newer union type syntax str | None (introduced in Python 3.10+).

This caused the following error when running the container:

TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

Solution

Updated the base image from python:3.9-slim to python:3.11-slim to support the modern Python union type syntax.

Changes

  • Dockerfile.cookies.generator: Changed FROM python:3.9-slim to FROM python:3.11-slim

Fixes #256

Made with Cursor

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>
Copilot AI review requested due to automatic review settings February 25, 2026 18:27
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-slim to python:3.11-slim in the cookie generator Dockerfile to support the union type syntax (str | None) used in cookie_grabber.py

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@grantdfoster grantdfoster merged commit 0df647f into main Feb 25, 2026
9 checks passed
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.

cookie generator syntax error

2 participants