Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion spacy/cli/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def get_git_version(
"""
try:
ret = run_command("git --version", capture=True)
except:
except Exception:
raise RuntimeError(error)
stdout = ret.stdout.strip()
if not stdout or not stdout.startswith("git version"):
Expand Down
2 changes: 1 addition & 1 deletion spacy/ml/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def pipes_with_nvtx_range(
# the original parameters are passed to pydantic for validation downstream.
try:
wrapped_func.__signature__ = inspect.signature(func) # type: ignore
except:
except Exception:
# Can fail for Cython methods that do not have bindings.
warnings.warn(Warnings.W122.format(method=name, pipe=pipe.name))
continue
Expand Down