Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Commit

Permalink
fix pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
skoudoro committed Jan 26, 2022
1 parent 668ff51 commit 7c34aa0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mailerlite/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ def check_headers(headers):

try:
url = build_url('stats')
_, res_json = get(url, headers=headers)
_, _ = get(url, headers=headers)
except OSError as e_res:
valid_headers = False
error_msg = e_res.args[0].content or "Something Wrong happens with the API headers"
error_msg = e_res.args[0].content or \
"Something Wrong happens with the API headers"

return valid_headers, error_msg

Expand Down

0 comments on commit 7c34aa0

Please sign in to comment.