Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,有谁知道是否有办法使用python-gitlab获取 http 状态代码?或者有没有办法使用 python-gitlab 的请求来获取状态码?就像您可以在请求库中执行的操作一样r.status_code,这将返回 200 或其他代码。
r.status_code
看起来他们为任何不是 200 的东西提出了 GitlabHttpError 。