From 9c8fbd74b1d922f241c926cc26d609d0d13ae1c5 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Mon, 19 Feb 2024 21:27:16 +0000 Subject: ruff lint fix: Run remaining auto-fixable rules --- docs/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/utils.py') diff --git a/docs/utils.py b/docs/utils.py index 18a457b7..796eca3d 100644 --- a/docs/utils.py +++ b/docs/utils.py @@ -74,11 +74,11 @@ def linkcode_resolve(repo_link: str, domain: str, info: dict[str, str]) -> str | for name in symbol_name.split("."): try: symbol.append(getattr(symbol[-1], name)) - except AttributeError as e: + except AttributeError: # This could be caused by trying to link a class attribute if is_attribute(symbol[-1], name): break - raise e + raise symbol_name = name -- cgit v1.2.3