Skip to content

Commit b691261

Browse files
committed
Fix access property
1 parent 3933ac6 commit b691261

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/datapilot/core/platforms/dbt/wrappers/manifest/v10/wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def _get_node(self, node: ManifestNode) -> AltimateManifestNode:
116116
contract=contract,
117117
meta=node.meta,
118118
patch_path=node.patch_path,
119-
access=node.access.value,
119+
access=getattr(node.access, "value", None) if hasattr(node, "access") and node.access is not None else None,
120120
)
121121

122122
def _get_source(self, source: SourceNode) -> AltimateManifestSourceNode:

src/datapilot/core/platforms/dbt/wrappers/manifest/v11/wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def _get_node(self, node: ManifestNode) -> AltimateManifestNode:
116116
contract=contract,
117117
meta=node.meta,
118118
patch_path=node.patch_path,
119-
access=node.access.value,
119+
access=getattr(node.access, "value", None) if hasattr(node, "access") and node.access is not None else None,
120120
)
121121

122122
def _get_source(self, source: SourceNode) -> AltimateManifestSourceNode:

src/datapilot/core/platforms/dbt/wrappers/manifest/v12/wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def _get_node(self, node: ManifestNode) -> AltimateManifestNode:
116116
contract=contract,
117117
meta=node.meta,
118118
patch_path=node.patch_path,
119-
access=node.access.value,
119+
access=getattr(node.access, "value", None) if hasattr(node, "access") and node.access is not None else None,
120120
)
121121

122122
def _get_source(self, source: SourceNode) -> AltimateManifestSourceNode:

0 commit comments

Comments
 (0)