Skip to content

Commit

Permalink
Fixed issue where a invaild path cant be found and gitlab api returns a
Browse files Browse the repository at this point in the history
400 status code.
  • Loading branch information
shield007 committed May 6, 2022
1 parent 17c2384 commit d7d6cf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyup/providers/gitlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def get_file(self, repo, path, branch):
try:
contentfile = repo.files.get(file_path=path, ref=branch)
except GitlabGetError as e:
if e.response_code == 404:
if e.response_code in [404, 400]:
logger.warning("Unable to get {path}".format(
path=path,
))
Expand Down

0 comments on commit d7d6cf7

Please sign in to comment.