Skip to content

Commit

Permalink
Follow-up fix to Storage refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
danielballan committed Feb 14, 2025
1 parent 2f2d787 commit 91c4092
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tiled/structures/data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]):
Expand Down

0 comments on commit 91c4092

Please sign in to comment.