From 549e7d019e9c6a7c65c4e88abdc93f0cf6217e2a Mon Sep 17 00:00:00 2001 From: popcorny Date: Wed, 11 Sep 2024 17:11:33 +0800 Subject: [PATCH] Handle no state in the cloud problem Signed-off-by: popcorny --- recce/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recce/core.py b/recce/core.py index 9122c132..d6b5204f 100644 --- a/recce/core.py +++ b/recce/core.py @@ -43,7 +43,7 @@ def load(cls, **kwargs): context.adapter = DbtAdapter.load(**kwargs) # Import state - if state_loader: + if state_loader is not None: state = state_loader.load() if state: context.import_state(state)