From 9779455677e98d693931b0a90b700e656fe4a010 Mon Sep 17 00:00:00 2001 From: Dave Date: Tue, 27 Feb 2024 18:08:49 +0100 Subject: [PATCH] fix bug in loading import schema --- dlt/common/storages/schema_storage.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlt/common/storages/schema_storage.py b/dlt/common/storages/schema_storage.py index 71478f6ba1..b47c29bf88 100644 --- a/dlt/common/storages/schema_storage.py +++ b/dlt/common/storages/schema_storage.py @@ -144,6 +144,8 @@ def _maybe_import_schema(self, name: str, storage_schema: DictStrAny = None) -> return rv_schema def maybe_load_import_schema(self, name: str) -> Schema: + if not self.config.import_schema_path: + return None try: imported_schema = self._load_import_schema(name) return Schema.from_dict(imported_schema)