From d7d6cf7d0798ce0bd3578eaec193a3ec7ae478a3 Mon Sep 17 00:00:00 2001 From: John-Paul Stanford Date: Fri, 6 May 2022 10:33:13 +0100 Subject: [PATCH] Fixed issue where a invaild path cant be found and gitlab api returns a 400 status code. --- pyup/providers/gitlab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyup/providers/gitlab.py b/pyup/providers/gitlab.py index e4af27c..426dd19 100644 --- a/pyup/providers/gitlab.py +++ b/pyup/providers/gitlab.py @@ -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, ))