Skip to content

Commit bfb3e29

Browse files
committed
Catch Gitlab HTTP error for missing submodules
1 parent c56b453 commit bfb3e29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gitlab_submodule/gitlab_submodule.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from gitlab import Gitlab
44
from gitlab.v4.objects import Project, ProjectManager
5+
from gitlab.exceptions import GitlabHttpError
56

67
from gitlab_submodule.objects import Submodule, Subproject
78
from gitlab_submodule.read_gitmodules import \
@@ -60,7 +61,7 @@ def iterate_subprojects(
6061
)
6162
if not (only_gitlab_subprojects and not subproject.project):
6263
yield subproject
63-
except FileNotFoundError:
64+
except FileNotFoundError, GitlabHttpError:
6465
pass
6566

6667

0 commit comments

Comments
 (0)