Skip to content

Commit

Permalink
Manage NotADirectoryError when reading the catalog file
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiodsf committed Feb 23, 2025
1 parent e58be4a commit 78803eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requake/catalog/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def read_stored_catalog():
raise ValueError(
f'Error reading catalog file {config.scan_catalog_file}: {err}'
) from err
except FileNotFoundError as err:
except (FileNotFoundError, NotADirectoryError) as err:
raise FileNotFoundError(
f'Catalog file {config.scan_catalog_file} not found'
) from err
Expand Down

0 comments on commit 78803eb

Please sign in to comment.