Skip to content

Commit

Permalink
[dwallace0723#3] Remove raise_for_status
Browse files Browse the repository at this point in the history
  • Loading branch information
hans2520 committed Mar 15, 2022
1 parent 9ebd2b1 commit c1a666d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pydbtcloud/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@ def _get(self, url_suffix: str, params: Dict = None) -> Dict:
url = self.api_base + url_suffix
headers = self._construct_headers()
response = requests.get(url, headers=headers, params=params)
response.raise_for_status()
return response.json()

def _post(self, url_suffix: str, params: Dict = None, data: Dict = None,
headers: Dict = None) -> Dict:
url = self.api_base + url_suffix
headers = headers or self._construct_headers()
response = requests.post(url, headers=headers, params=params, data=data)
response.raise_for_status()
return response.json()

def list_connections(self, params: Dict = None):
Expand Down

0 comments on commit c1a666d

Please sign in to comment.