@@ -264,7 +264,7 @@ def clone(
264
264
cls ._set_mirror (repo , progress = progress )
265
265
else :
266
266
cls ._set_default_tracking_branch (repo )
267
- except Exception as exc : # noqa: BLE001
267
+ except Exception as exc :
268
268
raise CloneError (url , os .fsdecode (to_path )) from exc
269
269
270
270
@staticmethod
@@ -580,7 +580,7 @@ def iter_remote_refs(self, url: str, base: Optional[str] = None, **kwargs):
580
580
try :
581
581
_remote , location = get_remote_repo (self .repo , url )
582
582
client , path = get_transport_and_path (location , ** kwargs )
583
- except Exception as exc : # noqa: BLE001
583
+ except Exception as exc :
584
584
raise InvalidRemote (url ) from exc
585
585
586
586
try :
@@ -617,7 +617,7 @@ def push_refspecs( # noqa: C901
617
617
try :
618
618
_remote , location = get_remote_repo (self .repo , url )
619
619
client , path = get_transport_and_path (location , ** kwargs )
620
- except Exception as exc : # noqa: BLE001
620
+ except Exception as exc :
621
621
raise SCMError (f"'{ url } ' is not a valid Git remote or URL" ) from exc
622
622
623
623
change_result = {}
@@ -910,7 +910,7 @@ def validate_git_remote(self, url: str, **kwargs):
910
910
try :
911
911
_ , location = get_remote_repo (self .repo , url )
912
912
client , path = get_transport_and_path (location , ** kwargs )
913
- except Exception as exc : # noqa: BLE001
913
+ except Exception as exc :
914
914
raise InvalidRemote (url ) from exc
915
915
if isinstance (client , LocalGitClient ) and not os .path .exists (
916
916
os .path .join ("" , path )
@@ -989,5 +989,5 @@ def ls_remote(url: str) -> dict[str, str]:
989
989
return {os .fsdecode (ref ): sha .decode ("ascii" ) for ref , sha in refs .items ()}
990
990
except HTTPUnauthorized as exc :
991
991
raise AuthError (url ) from exc
992
- except Exception as exc : # noqa: BLE001
992
+ except Exception as exc :
993
993
raise InvalidRemote (url ) from exc
0 commit comments