Skip to content

Commit 39af223

Browse files
add an error for undetectable filetype
Signed-off-by: thiswillbeyourgithub <[email protected]>
1 parent b453748 commit 39af223

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

wdoc/utils/errors.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,8 @@ def __init__(self, name, value) -> None:
4040
super().__init__(
4141
f"Attribute of the wdoc env instance should not be set manually, instead modify os.environ. Attribute name was '{name}'. Value was '{value}'"
4242
)
43+
44+
45+
class NoInferrableFiletype(Exception):
46+
def __init__(self, message: str) -> None:
47+
super().__init__(message)

0 commit comments

Comments
 (0)