@@ -264,7 +264,7 @@ def clone(
264264 cls ._set_mirror (repo , progress = progress )
265265 else :
266266 cls ._set_default_tracking_branch (repo )
267- except Exception as exc : # noqa: BLE001
267+ except Exception as exc :
268268 raise CloneError (url , os .fsdecode (to_path )) from exc
269269
270270 @staticmethod
@@ -580,7 +580,7 @@ def iter_remote_refs(self, url: str, base: Optional[str] = None, **kwargs):
580580 try :
581581 _remote , location = get_remote_repo (self .repo , url )
582582 client , path = get_transport_and_path (location , ** kwargs )
583- except Exception as exc : # noqa: BLE001
583+ except Exception as exc :
584584 raise InvalidRemote (url ) from exc
585585
586586 try :
@@ -617,7 +617,7 @@ def push_refspecs( # noqa: C901
617617 try :
618618 _remote , location = get_remote_repo (self .repo , url )
619619 client , path = get_transport_and_path (location , ** kwargs )
620- except Exception as exc : # noqa: BLE001
620+ except Exception as exc :
621621 raise SCMError (f"'{ url } ' is not a valid Git remote or URL" ) from exc
622622
623623 change_result = {}
@@ -910,7 +910,7 @@ def validate_git_remote(self, url: str, **kwargs):
910910 try :
911911 _ , location = get_remote_repo (self .repo , url )
912912 client , path = get_transport_and_path (location , ** kwargs )
913- except Exception as exc : # noqa: BLE001
913+ except Exception as exc :
914914 raise InvalidRemote (url ) from exc
915915 if isinstance (client , LocalGitClient ) and not os .path .exists (
916916 os .path .join ("" , path )
@@ -989,5 +989,5 @@ def ls_remote(url: str) -> dict[str, str]:
989989 return {os .fsdecode (ref ): sha .decode ("ascii" ) for ref , sha in refs .items ()}
990990 except HTTPUnauthorized as exc :
991991 raise AuthError (url ) from exc
992- except Exception as exc : # noqa: BLE001
992+ except Exception as exc :
993993 raise InvalidRemote (url ) from exc
0 commit comments