← Winnitude! Search  ·  Reader Mode (1000 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 44 LINKS

fix: raise GitlabHeadError in `project.files.head()` method by JohnVillalovos · Pull Request #3006 · python-gitlab/python-gitlab

Repository navigation

fix: raise GitlabHeadError in project.files.head() method - #3006


Merged
nejch merged 1 commit into main from jlvillal/issue_3004_gitlabheadexception Oct 1, 2024
Merged

fix: raise GitlabHeadError in project.files.head() method #3006 nejch merged 1 commit into main from jlvillal/issue_3004_gitlabheadexception

Conversation

JohnVillalovos commented Oct 1, 2024



Copy link Copy Markdown
Member

When an error occurs, raise GitlabHeadError in
project.files.head() method.

Closes : #3004

fix: raise GitlabHeadError in project.files.head() method 6494630
When an error occurs, raise `GitlabHeadError` in
`project.files.head()` method.

Closes: #3004
JohnVillalovos requested a review from nejch October 1, 2024 15:31

codecov
Bot
commented Oct 1, 2024 · edited Loading



Copy link Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.61%. Comparing base (2ab0b9f) to head (6494630) .
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3006   +/-   ##
=======================================
  Coverage   96.61%   96.61%           
=======================================
  Files          95       95           
  Lines        6088     6089    +1     
=======================================
+ Hits         5882     5883    +1     
  Misses        206      206           
Flag Coverage Δ
api_func_v4 82.64% <100.00%> (+<0.01%) ⬆️
cli_func_v4 82.90% <100.00%> (+<0.01%) ⬆️
unit 88.75% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
gitlab/v4/objects/files.py 100.00% <100.00%> (ø)
nejch approved these changes Oct 1, 2024
View reviewed changes

nejch left a comment



Copy link Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more .

Thanks @JohnVillalovos 🙇 didn't even think this would be an issue

nejch merged commit 9bf26df into main Oct 1, 2024 nejch deleted the jlvillal/issue_3004_gitlabheadexception branch October 1, 2024 17:16 hidingmyname mentioned this pull request Oct 30, 2026 Bodyless HEAD error responses produce an empty error_message (str(e) == "404: ") #3461 Open Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment

Labels

None yet

2 participants