Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Project Runners Create - Already Exists GitlabCreateError error_message Property Type Dict Instead Of Str #2724

Open
@mark-e-kibbe

Description

@mark-e-kibbe

Description of the problem, including code/CLI snippet

p_runner = prj.runners.create({'runner_id': arguments.owned_runner_id})

Creating a project runner that already exists as attached will throw a GitlabCreateError exception, but the error_message propertty is of the wrong type (dict instead of str)

Per the documentation at:readthedocs, exception gitlab.GitlabCreateError(error_message: str | bytes = '', response_code: int | None = None, response_body: bytes | None = None)

Expected Behavior

GitlabCreateError error_message property should be type string when a duplicate runner id is attempted attached to a project

Actual Behavior

GitlabCreateError error_message property is type dict

Specifications

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp