Skip to content

Fix cancellation checking for transcription backends #122

@rmusser01

Description

@rmusser01

medium

Checking for cancellation by inspecting the string content of an exception (if "cancelled by user" in error_msg.lower():) is fragile and can lead to bugs if the error message changes.

It would be more robust to define and raise a specific CancellationError or ProcessingCancelledError exception. This allows for a more reliable try...except CancellationError: block, making the control flow clearer and less prone to breaking from changes in error messages.

Originally posted by @gemini-code-assist[bot] in #111 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions