diff --git a/extensions/positron-python/python_files/positron/positron_ipykernel/inspectors.py b/extensions/positron-python/python_files/positron/positron_ipykernel/inspectors.py index 62ec7d57a27..e45de4dfcb0 100644 --- a/extensions/positron-python/python_files/positron/positron_ipykernel/inspectors.py +++ b/extensions/positron-python/python_files/positron/positron_ipykernel/inspectors.py @@ -232,7 +232,12 @@ def get_length(self) -> int: return len([p for p in dir(self.value) if not (p.startswith("_"))]) def get_child(self, key: str) -> Any: - return getattr(self.value, key) + if isinstance(self.value, property): + pass + try: + return getattr(self.value, key) + except Exception as e: + return str(f"{type(e).__name__}: {e}") def get_items(self) -> Iterable[Tuple[str, Any]]: for key in dir(self.value):