Skip to content

Commit

Permalink
fix bug in loading import schema
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-rp committed Feb 28, 2024
1 parent 6a79f66 commit 9779455
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dlt/common/storages/schema_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9779455

Please sign in to comment.