Merge pull request #2083 from diekhans/issue-2082-None-file-attr

Handle object with __file__ attribute having a None value (issue #2082)
This commit is contained in:
Dave Halter authored and GitHub committed 2025-12-21 01:47:23 +00:00
commit ade9131d04
1 file changed
+1 -1
+1 -1
View File
@@ -184,7 +184,7 @@ class DirectObjectAccess:
def py__file__(self) -> Optional[Path]:
try:
return Path(self._obj.__file__)
except AttributeError:
except (AttributeError, TypeError):
return None
def py__doc__(self):