Skip to content

Commit 2f9dc3d

Browse files
committed
remove unneeded options for InputError
can always add this back later if I want to
1 parent 71719d5 commit 2f9dc3d

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎paths_cli/compiling/errors.py‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@ class InputError(Exception):
22
"""Raised when users provide bad input in files/interactive sessions.
33
"""
44
@classmethod
5-
def invalid_input(cls, value, attr, type_name=None, name=None):
5+
def invalid_input(cls, value, attr):
66
msg = f"'{value}' is not a valid input for {attr}"
7-
if type_name is not None:
8-
msg += f" in {type_name}"
9-
if name is not None:
10-
msg += f" named {name}"
117
return cls(msg)
128

139
@classmethod

0 commit comments

Comments
 (0)