Skip to content

Make err_check raise OSError when appropriate? #563

Description

@mikeboers

FFmpeg functions will return standard error codes sometimes. They are currently being raised as AVError, but perhaps they should be OSError instead.

Options:

  1. Leave them as AVError.
  2. Raise OSError when the codes are known to errno module. I vaguely like this one best, even though it likely breaks more code.
  3. Make a new AVOSError which extends from AVError and OSError, and raise that. This would still let you catch them separately, but old code wouldn't break (although new code would have to do them in the right order).

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