Skip to content

Commit

Permalink
Use hasattr in case no expectation explorer manager
Browse files Browse the repository at this point in the history
  • Loading branch information
roblim committed Jun 23, 2019
1 parent 42e4781 commit 18dc1bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion great_expectations/data_asset/data_asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 18dc1bc

Please sign in to comment.