Skip to content

Commit 11655e0

Browse files
committed
Document a few exceptions for add_target
1 parent 4921e34 commit 11655e0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/vws/vws.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,13 @@ def add_target(
206206
Raises:
207207
~vws.exceptions.AuthenticationFailure: The secret key is not
208208
correct.
209+
~vws.exceptions.BadImage: There is a problem with the given image.
210+
For example, it must be a JPEG or PNG file in the grayscale or
211+
RGB color space.
209212
~vws.exceptions.Fail: There was an error with the request. For
210213
example, the given access key does not match a known database.
214+
~vws.exceptions.TargetNameExist: A target with the given ``name``
215+
already exists.
211216
"""
212217
image_data = image.getvalue()
213218
image_data_encoded = base64.b64encode(image_data).decode('ascii')

0 commit comments

Comments
 (0)