Skip to content

GitlabHttpError raised instead of GitlabGetError #2998

Closed

Description

@dmoller1

Description of the problem, including code/CLI snippet

ProjectFileManager.get() raises GitlabHttpError instead of GitlabGetError when trying to retrieve a file which does not exist.

Expected Behavior

When calling ProjectFileManager.get(), it raises GitlabGetError if the given file does not exist.

Actual Behavior

When calling ProjectFileManager.get(), it raises GitlabHttpError if the given file does not exist.

Specifications

  • python-gitlab version: 4.12
  • API version you are using (v3/v4): v4
  • Gitlab server version (or gitlab.com):

Activity

  1. berke581 commented on Sep 30, 2024

    @berke581

    We're also experiencing this issue. It wasn't present in version 4.11.1, but in the version 4.12.0, we're encountering the same error mentioned in this issue. We're not entirely sure what has changed between these versions—could it possibly be related to the GitLab EE version?
    v4.11.1...v4.12.0

  2. self-assigned this
    on Sep 30, 2024
  3. nejch commented on Sep 30, 2024

    @nejch
    Member

    This is a slip-up from #2977 as we no longer extend GetMixin and we forgot to wrap the correct error, I'll fix and re-relase ASAP.

  4. locked as resolved and limited conversation to collaborators on Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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