From 37b7249533afd9e025db1002ebc7aefd8444159a Mon Sep 17 00:00:00 2001 From: Nicholas Schrock Date: Wed, 23 Aug 2023 17:38:14 -0700 Subject: [PATCH] fix --- .../dagster/_core/execution/context/dual_state_context.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python_modules/dagster/dagster/_core/execution/context/dual_state_context.py b/python_modules/dagster/dagster/_core/execution/context/dual_state_context.py index e3242c256b0b5..be9823977807f 100644 --- a/python_modules/dagster/dagster/_core/execution/context/dual_state_context.py +++ b/python_modules/dagster/dagster/_core/execution/context/dual_state_context.py @@ -45,9 +45,8 @@ def __init__( self._resources = None self.resource_defs = wrap_resources_for_execution(resources_dict_or_resources_obj) - - if not self.resource_defs: - self._resources = ScopedResourcesBuilder.build_empty() + if not self.resource_defs: + self._resources = ScopedResourcesBuilder.build_empty() def call_on_enter(self) -> None: self._cm_scope_entered = True