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 3b7e7d6 commit 44881b6Copy full SHA for 44881b6
src/vws/exceptions.py
@@ -1,6 +1,8 @@
1
"""
2
Custom exceptions for Vuforia errors.
3
4
+
5
+import json
6
from urllib.parse import urlparse
7
8
import requests
@@ -290,7 +292,9 @@ def target_name(self) -> str:
290
292
291
293
The target name which already exists.
294
- return self.response.request.json()['name']
295
+ response_body = self.response.request.body or b''
296
+ request_json = json.loads(response_body)
297
+ return str(request_json['name'])
298
299
300
class ImageTooLarge(Exception):
0 commit comments