We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4921e34 commit 11655e0Copy full SHA for 11655e0
src/vws/vws.py
@@ -206,8 +206,13 @@ def add_target(
206
Raises:
207
~vws.exceptions.AuthenticationFailure: The secret key is not
208
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.
212
~vws.exceptions.Fail: There was an error with the request. For
213
example, the given access key does not match a known database.
214
+ ~vws.exceptions.TargetNameExist: A target with the given ``name``
215
+ already exists.
216
"""
217
image_data = image.getvalue()
218
image_data_encoded = base64.b64encode(image_data).decode('ascii')
0 commit comments