Skip to content

Commit

Permalink
check http response and contributing guidilines
Browse files Browse the repository at this point in the history
  • Loading branch information
giacbrd committed Jul 31, 2019
1 parent a0590d4 commit 6d443f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Contributing
============

- Anyone can contribute through Pull Requests
- Contributions should start by creating a feature/fix branch from the **develop** branch
- Following the PEP 8 conventions is advisable
- Starting an *issue* before contributing is advisable
- Tests must pass, unit tests specific to the contribution are mandatory
1 change: 1 addition & 0 deletions dandelion/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def do_request(self, params, extra_url='', method='post', **kwargs):
response = self.cache.get(cache_key)
else:
response = self._do_raw_request(url, params, method, **kwargs)
response.raise_for_status()
if response.ok:
self.cache.set(cache_key, response)

Expand Down

0 comments on commit 6d443f5

Please sign in to comment.