Remove overzealous Catch block

We've identified most of the ways that this can fail and accounted for
them, so let's stop catching all errors and let them fail the execution
and get reported if they come up.

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
This commit is contained in:
Stephen Gallagher 2024-06-27 14:27:43 -04:00
parent ad46d34581
commit 54ee6b4db2

View file

@ -235,11 +235,6 @@ def get_canonical_repo_name(config, repo_url):
# they haven't supplied a token or it is expired.
raise rpkgError("Insufficient Gitlab API permissions. Missing token?")
except Exception as e:
# For any other exception, just fall back to using the last segment
# of the URL path and hope it's correct
canonical_repo_name = parsed_repo_url.path.split('/')[-1]
# Chop off a trailing .git if any
return canonical_repo_name.rsplit('.git', 1)[0]