Skip to content

Commit 0cfa9a4

Browse files
committed
Start using helper for result codes
1 parent a2c737a commit 0cfa9a4

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
@@ -89,6 +89,11 @@ def _raise_for_result_code(
8989
"""
9090
Raise an appropriate exception if the expected result code for a successful
9191
request is not returned.
92+
93+
Args:
94+
response: A response from Vuforia.
95+
expected_result_code: See
96+
https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Interperete-VWS-API-Result-Codes
9297
"""
9398
result_code = response.json()['result_code']
9499
if result_code == expected_result_code:

0 commit comments

Comments
 (0)