Skip to content

Commit

Permalink
Update exceptions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
milocress committed Sep 19, 2024
1 parent f026bff commit 57cba7e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions llmfoundry/utils/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,14 +348,14 @@ def __init__(self, input_folder: str) -> None:
super().__init__(message, input_folder=input_folder)


class InputFileNotFound(UserError):
"""Error thrown when the a file is not found."""
class InputFolderNotFound(UserError):
"""Error thrown when the a folder is not found."""

def __init__(self, file_that_was_not_found: str) -> None:
message = f'{file_that_was_not_found} not found.'
message = f'{folder_that_was_not_found} not found.'
super().__init__(
message,
file_that_was_not_found=file_that_was_not_found,
folder_that_was_not_found=folder_that_was_not_found,
)


Expand Down

0 comments on commit 57cba7e

Please sign in to comment.