Browse Source

Removed extra error details from dictionary

pull/172/head
Michael Olund 5 years ago
parent
commit
725bb8f5cd
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      edivorce/apps/core/utils/efiling_court_locations.py

+ 2
- 2
edivorce/apps/core/utils/efiling_court_locations.py View File

@ -75,12 +75,12 @@ class EFilingCourtLocations(EFilingHubCallerBase):
if response.status_code == 401: if response.status_code == 401:
print(response.headers.get('WWW-Authenticate', '')) print(response.headers.get('WWW-Authenticate', ''))
return { return {
"Error calling court locations API": {"status_code": "401", "text": "authentication failed"},
"Authentication error calling court locations API": {},
"Vancouver": {"address_1": "API Error", "postal": "APIERR", "location_id": "6011"} "Vancouver": {"address_1": "API Error", "postal": "APIERR", "location_id": "6011"}
} }
print(str(response.status_code) + " - " + response.text) print(str(response.status_code) + " - " + response.text)
return { return {
"Error calling court locations API": {"status_code": str(response.status_code), "text": response.text},
"Error calling court locations API": {},
"Vancouver": {"address_1": "API Error", "postal": "APIERR", "location_id": "6011"} "Vancouver": {"address_1": "API Error", "postal": "APIERR", "location_id": "6011"}
} }

Loading…
Cancel
Save