File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -230,12 +230,10 @@ def __eq__(self, other: Any) -> bool:
230230
231231
232232@lru_cache
233- def _manifests (io : FileIO , manifest_list : Optional [ str ] ) -> List [ManifestFile ]:
233+ def _manifests (io : FileIO , manifest_list : str ) -> List [ManifestFile ]:
234234 """Return the manifests from the manifest list."""
235- if manifest_list not in (None , "" ):
236- file = io .new_input (manifest_list ) # type: ignore
237- return list (read_manifest_list (file ))
238- return []
235+ file = io .new_input (manifest_list )
236+ return list (read_manifest_list (file ))
239237
240238
241239class Snapshot (IcebergBaseModel ):
@@ -259,7 +257,9 @@ def __str__(self) -> str:
259257
260258 def manifests (self , io : FileIO ) -> List [ManifestFile ]:
261259 """Return the manifests for the given snapshot."""
262- return _manifests (io , self .manifest_list )
260+ if self .manifest_list :
261+ return _manifests (io , self .manifest_list )
262+ return []
263263
264264
265265class MetadataLogEntry (IcebergBaseModel ):
You can’t perform that action at this time.
0 commit comments