Skip to content

Commit 9e629fe

Browse files
authored
Merge branch 'master' into feat/nb341
2 parents ae536d0 + f9ee248 commit 9e629fe

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
- Updated spec as per v3.4.7
66

7+
## 3.0.6
8+
9+
- Add exceptions on action.py
10+
711
## 3.0.5
812

913
- Bug fix: Tags fields need additional translation when modifying

actions/lib/action.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,9 @@ def make_request(self, endpoint_uri, http_action, **kwargs):
7373
)
7474

7575
if r:
76-
return {"raw": r.json(), "status": r.status_code}
76+
try:
77+
raw = r.json()
78+
except ValueError:
79+
raw = r.text
80+
return {"raw": raw, "status": r.status_code}
7781
return {"raw": {}, "status": 404}

0 commit comments

Comments
 (0)