Skip to content

Commit 903d929

Browse files
committed
CI: Use specific error exceptions where applicable instead of general exception.
1 parent 3e83c81 commit 903d929

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def linkcode_resolve(domain, info):
7979
continue
8080
try:
8181
obj = getattr(obj, part)
82-
except Exception:
82+
except AttributeError:
8383
return None
8484

8585
try:
@@ -94,7 +94,7 @@ def linkcode_resolve(domain, info):
9494

9595
try:
9696
rel_path = filename.relative_to(REPO_ROOT).as_posix()
97-
except Exception:
97+
except ValueError:
9898
return None
9999

100100
end_line = start_line + len(source) - 1

0 commit comments

Comments
 (0)