Skip to content

Commit 8134efc

Browse files
authored
Remove duplicate response check in authentication
Removed redundant check for server response before raising AuthFailure.
1 parent 3d24447 commit 8134efc

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

lnetatmo.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,6 @@ def renew_token(self):
277277
"client_secret" : self._clientSecret
278278
}
279279
resp = postRequest("authentication", _AUTH_REQ, postParams)
280-
if not resp:
281-
raise AuthFailure("No response received from server.")
282280
if not resp:
283281
raise AuthFailure("Authentication Error from server.")
284282
if self.refreshToken != resp['refresh_token']:

0 commit comments

Comments
 (0)