From 54ee6b4db2d21e235154474e5cb24390a70eaad1 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Jun 27 2024 18:28:35 +0000 Subject: 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 --- diff --git a/src/centpkg/utils.py b/src/centpkg/utils.py index 4dbf4fa..3fa35ea 100644 --- a/src/centpkg/utils.py +++ b/src/centpkg/utils.py @@ -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]