Skip to content

Commit

Permalink
Merge pull request #84 from praekelt/feature/add-raise-for-status
Browse files Browse the repository at this point in the history
added a raise for status for sending jembi data
  • Loading branch information
OMosimege committed Apr 17, 2018
2 parents c9e4286 + cc978bd commit c7cfa89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions malaria24/ona/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ def compile_and_send_jembi(case_pk):
case_dictionary = case.get_data()
auth = HTTPBasicAuth(settings.JEMBI_USERNAME, settings.JEMBI_PASSWORD)
r = requests.post(api_url, json=case_dictionary, auth=auth)
r.raise_for_status()
r.json()


Expand Down

0 comments on commit c7cfa89

Please sign in to comment.