Skip to content

Commit 92cbbad

Browse files
ianardeefharper
authored andcommitted
more accurate exception type and fix typo
1 parent febed09 commit 92cbbad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mindee/documents/passport.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ def request(endpoints: List[Endpoint], input_file, include_words=False):
114114
:param include_words: Include Mindee vision words in http_response
115115
"""
116116
if include_words:
117-
raise Exception(
118-
"invlude_words parameter cannot be set to True for passport API"
117+
raise ValueError(
118+
"include_words parameter cannot be set to True for passport API"
119119
)
120120
return endpoints[0].predict_request(input_file, include_words)
121121

0 commit comments

Comments
 (0)