Skip to content

Commit

Permalink
handle 202 similar to 204
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudcode-hungary authored Jan 29, 2020
1 parent ca03939 commit c9064cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion digitalocean/baseapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def get_data(self, url, type=GET, params=None):
params.setdefault("per_page", 200)

req = self.__perform_request(url, type, params)
if req.status_code == 204:
if req.status_code in (202, 204):
return True

if req.status_code == 404:
Expand Down

0 comments on commit c9064cb

Please sign in to comment.