aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2025-11-10 19:44:23 +0000
committerGravatar Joe Banks <[email protected]>2025-11-10 19:45:42 +0000
commit3b5c355314e602a40081b73e8502ac34314c7d9b (patch)
tree606085ba052746d1018d56fa0eca255adde4e387 /docs
parentUnignore B904 (raise-without-from-inside-except) (diff)
Fix B904 across project (raise-without-from-except-inside)
Diffstat (limited to 'docs')
-rw-r--r--docs/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/utils.py b/docs/utils.py
index 567f0d18..d11f0d9c 100644
--- a/docs/utils.py
+++ b/docs/utils.py
@@ -98,7 +98,7 @@ def linkcode_resolve(repo_link: str, domain: str, info: dict[str, str]) -> str |
# These are ClassVars added by pydantic.
# Since they're not in our source code, we cannot resolve them to a url.
return None
- raise Exception(f"Could not find symbol `{symbol_name}` in {module.__name__}.")
+ raise Exception(f"Could not find symbol `{symbol_name}` in {module.__name__}.") from None
start, end = pos
_, offset = inspect.getsourcelines(symbol[-2])