From 18dc1bccffb0823e45de764ad773e383bab9f416 Mon Sep 17 00:00:00 2001 From: Rob Lim Date: Sun, 23 Jun 2019 23:16:35 +0100 Subject: [PATCH] Use hasattr in case no expectation explorer manager --- great_expectations/data_asset/data_asset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/great_expectations/data_asset/data_asset.py b/great_expectations/data_asset/data_asset.py index b1647d919d60..87fe83787721 100644 --- a/great_expectations/data_asset/data_asset.py +++ b/great_expectations/data_asset/data_asset.py @@ -52,7 +52,7 @@ def __init__(self, *args, **kwargs): self._batch_kwargs = batch_kwargs if profiler is not None: profiler.profile(self) - if data_context and data_context._expectation_explorer_manager: + if data_context and hasattr(data_context, '_expectation_explorer_manager'): self.set_default_expectation_argument("include_config", True) def autoinspect(self, profiler):