better handling of exceptions, again

This commit is contained in:
Félix Piédallu
2024-03-09 15:47:01 +01:00
parent c947fed756
commit 3a4d499cf4
2 changed files with 8 additions and 3 deletions

View File

@@ -57,6 +57,7 @@ class GithubAPI:
class GitlabAPI:
def __init__(self, upstream: str):
# Find gitlab api root...
upstream = upstream.rstrip("/")
self.forge_root = self.get_forge_root(upstream).rstrip("/")
self.project_path = upstream.replace(self.forge_root, "").lstrip("/")
self.project_id = self.find_project_id(self.project_path)