Skip to content

Commit 990613d

Browse files
Merge pull request #888 from adamtheturtle/document-more-exceptions
Add remaining add target raises commands
2 parents 1e083c2 + 7148ea1 commit 990613d

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

spelling_private_dict.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
AuthenticationFailure
2+
BadImage
3+
ImageTooLarge
4+
MetadataTooLarge
5+
ProjectInactive
6+
TargetNameExist
17
Ubuntu
28
UnknownTarget
39
api
@@ -19,6 +25,7 @@ filename
1925
foo
2026
formdata
2127
github
28+
grayscale
2229
greyscale
2330
hexdigits
2431
hmac
@@ -35,7 +42,6 @@ kib
3542
kwargs
3643
linters
3744
linting
38-
linting
3945
macOS
4046
mb
4147
metadata

src/vws/vws.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,12 @@ def add_target(
211211
RGB color space.
212212
~vws.exceptions.Fail: There was an error with the request. For
213213
example, the given access key does not match a known database.
214+
~vws.exceptions.MetadataTooLarge: The given metadata is too large.
215+
The maximum size is 1 MB of data when Base64 encoded.
214216
~vws.exceptions.ImageTooLarge: The given image is too large.
215217
~vws.exceptions.TargetNameExist: A target with the given ``name``
216218
already exists.
219+
~vws.exceptions.ProjectInactive: The project is inactive.
217220
"""
218221
image_data = image.getvalue()
219222
image_data_encoded = base64.b64encode(image_data).decode('ascii')

0 commit comments

Comments
 (0)