mirror of
https://git.centos.org/centos/centpkg.git
synced 2025-02-23 08:12:55 +00:00
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:
parent
ad46d34581
commit
54ee6b4db2
1 changed files with 0 additions and 5 deletions
|
@ -235,11 +235,6 @@ def get_canonical_repo_name(config, repo_url):
|
||||||
# they haven't supplied a token or it is expired.
|
# they haven't supplied a token or it is expired.
|
||||||
raise rpkgError("Insufficient Gitlab API permissions. Missing token?")
|
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
|
# Chop off a trailing .git if any
|
||||||
return canonical_repo_name.rsplit('.git', 1)[0]
|
return canonical_repo_name.rsplit('.git', 1)[0]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue