Skip to content

Commit

Permalink
removed try and accept block
Browse files Browse the repository at this point in the history
  • Loading branch information
axiomcura committed Mar 23, 2023
1 parent 175db2a commit 5f7ecae
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pycytominer/cyto_utils/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ def is_path_a_parquet_file(file: Union[str, pathlib.Path]) -> bool:
# Convert str to pathlib.Path object and absolute path
# check if the file also exists while converting to absolute path
if isinstance(file, str):
try:
file = pathlib.Path(file).resolve(strict=True)
except FileExistsError as e:
raise FileNotFoundError(f"{str(file)} does not exist") from e
file = pathlib.Path(file).resolve(strict=True)

# Check if file path is a parquet file
if file.suffix.lower() == ".parquet":
Expand Down

0 comments on commit 5f7ecae

Please sign in to comment.