From 91c409288cbf32e9854041399cc965cf69641e28 Mon Sep 17 00:00:00 2001 From: Dan Allan Date: Fri, 14 Feb 2025 09:34:14 -0500 Subject: [PATCH] Follow-up fix to Storage refactor --- tiled/structures/data_source.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tiled/structures/data_source.py b/tiled/structures/data_source.py index cd20d3e7b..59e4f8b4b 100644 --- a/tiled/structures/data_source.py +++ b/tiled/structures/data_source.py @@ -50,8 +50,10 @@ class Storage: sql: Optional[str] = None def __post_init__(self): - self.filesystem = ensure_uri(self.filesystem) - self.sql = ensure_uri(self.sql) + if self.filesystem is not None: + self.filesystem = ensure_uri(self.filesystem) + if self.sql is not None: + self.sql = ensure_uri(self.sql) @classmethod def from_path(cls, path: Union[str, Path]):