File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed
Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -320,7 +320,7 @@ def resolve_pattern(
320320 allowed_extensions (Optional[list], optional): White-list of file extensions to use. Defaults to None (all extensions).
321321 For example: allowed_extensions=[".csv", ".json", ".txt", ".parquet"]
322322 Returns:
323- List[Union[Path, Url] ]: List of paths or URLs to the local or remote files that match the patterns.
323+ List[str ]: List of paths or URLs to the local or remote files that match the patterns.
324324 """
325325 if is_relative_path (pattern ):
326326 pattern = xjoin (base_path , pattern )
@@ -573,17 +573,14 @@ def from_patterns(
573573 base_path = base_path if base_path is not None else Path ().resolve ().as_posix ()
574574 data_files = []
575575 for pattern in patterns :
576- try :
577- data_files .extend (
578- resolve_pattern (
579- pattern ,
580- base_path = base_path ,
581- allowed_extensions = allowed_extensions ,
582- download_config = download_config ,
583- )
576+ data_files .extend (
577+ resolve_pattern (
578+ pattern ,
579+ base_path = base_path ,
580+ allowed_extensions = allowed_extensions ,
581+ download_config = download_config ,
584582 )
585- except FileNotFoundError :
586- pass
583+ )
587584 origin_metadata = _get_origin_metadata (data_files , download_config = download_config )
588585 return cls (data_files , origin_metadata )
589586
You can’t perform that action at this time.
0 commit comments