Skip to content

Fix retry logic for google.genai client compatibility #2

@Pratz1337

Description

@Pratz1337

The current retry logic in _src/client_lib.py only catches HttpErrorRetriable (from googleapiclient). However, the library uses google.genai.Client, which raises google.genai.errors (e.g., ServerError, APIError). This causes transient API errors to crash the application instead of retrying.

Additionally, _src/se/visualization/game_tree.py unconditionally imports google.colab, causing immediate ModuleNotFoundError in local Python environments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions