diff --git a/physicsnemo/utils/domino/utils.py b/physicsnemo/utils/domino/utils.py index c2c8e0feaa..0fcee07a8e 100644 --- a/physicsnemo/utils/domino/utils.py +++ b/physicsnemo/utils/domino/utils.py @@ -356,7 +356,7 @@ def get_filenames(filepath: str, exclude_dirs: bool = False) -> List[str]: filenames.append(item) return filenames else: - FileNotFoundError() + raise FileNotFoundError() def calculate_pos_encoding(nx: ArrayType, d: int = 8) -> ArrayType: