Skip to content

Commit

Permalink
added a debug line in facility_models.py: 140
Browse files Browse the repository at this point in the history
  • Loading branch information
ertush committed Aug 2, 2024
1 parent 11a915d commit 1b24960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion facilities/models/facility_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def get_org_unit_id(self, code):
)

if len(r.json()["organisationUnits"]) is 1 and "id" in r.json()["organisationUnits"][0]:
raise ValidationError("[DEBUG] Repsonse {}".format(r.text))
raise ValidationError("[DEBUG] Repsonse {}; Return {}".format(r.text, r.json()["organisationUnits"][0]["id"]))
return [r.json()["organisationUnits"][0]["id"], 'retrieved']
else:
r_generate_orgunit_uid = requests.get(
Expand Down

0 comments on commit 1b24960

Please sign in to comment.