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]