Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into feat/nb35
Browse files Browse the repository at this point in the history
# Conflicts:
#	CHANGES.md
#	pack.yaml
  • Loading branch information
abhi1693 committed Jan 22, 2024
2 parents 8b6524f + f9ee248 commit d1d694c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

## 3.1.0

- Updated spec as per v3.5.0
- Updated spec as per v3.5.9

## 3.0.6

- Add exceptions on action.py

## 3.0.5

Expand Down
6 changes: 5 additions & 1 deletion actions/lib/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,9 @@ def make_request(self, endpoint_uri, http_action, **kwargs):
)

if r:
return {"raw": r.json(), "status": r.status_code}
try:
raw = r.json()
except ValueError:
raw = r.text
return {"raw": raw, "status": r.status_code}
return {"raw": {}, "status": 404}

0 comments on commit d1d694c

Please sign in to comment.