Skip to content

Commit

Permalink
Update espo_api_client.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jmargutt authored Oct 6, 2023
1 parent 76c296e commit 657f54c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion clients/espo_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ class EspoAPI:
url_path = '/api/v1/'

def __init__(self, url, api_key):
if url.endswith('/'):
url = url[:-1]
self.url = url
self.api_key = api_key
self.status_code = None
Expand Down Expand Up @@ -86,4 +88,4 @@ def parse_reason(headers):
if 'X-Status-Reason' not in headers:
return 'Unknown Error'

return headers['X-Status-Reason']
return headers['X-Status-Reason']

0 comments on commit 657f54c

Please sign in to comment.