Skip to content

IndexUnreadable inherits FileNotFoundError #133

Open

Description

@inth3shadows

Found in PR #123 review round 3 (R3-6). IndexUnreadable(IndexMissing(FileNotFoundError)): a locked or permission-denied index is an OSError with errno None. Any except OSError/except FileNotFoundError around a select/connect call (reconcile.main already catches (OSError, ValueError) for registry loading) would report a lock as a missing file. Fix candidate: a non-OSError base class with IndexMissing and IndexUnreadable as siblings, caught together by the CLIs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to 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