Skip to content

Commit b4d1893

Browse files
committed
Merge branch 'main' into b/fix-namespace-packages-from-json
2 parents 198427f + 92a23d4 commit b4d1893

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/griffe/_internal/models.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,10 +1315,8 @@ def as_dict(self, *, full: bool = False, **kwargs: Any) -> dict[str, Any]:
13151315
},
13161316
)
13171317

1318-
try:
1318+
with suppress(ValueError):
13191319
base["relative_filepath"] = self.relative_filepath
1320-
except ValueError:
1321-
pass
13221320

13231321
if "source_link" not in base and (source_link := self.source_link) is not None:
13241322
base["source_link"] = source_link

0 commit comments

Comments
 (0)