Skip to content

Commit

Permalink
fix(lookup_infinity_sample) Remove duplicate line
Browse files Browse the repository at this point in the history
  • Loading branch information
Stell0 committed Feb 13, 2025
1 parent 05fd5fc commit e1b8023
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion freepbx/usr/src/nethvoice/samples/lookup_infinity.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
token_response = requests.post(token_url, auth=auth, data=token_body)
if token_response.status_code != 200:
raise Exception('Failed to get token from ' + token_url + ' with status code ' + str(token_response.status_code))
token = token_response.json()['access_token']
token = token_response.json().get("access_token")
if not token:
raise Exception('No token found in response from ' + url)
Expand Down

0 comments on commit e1b8023

Please sign in to comment.