Skip to content

Commit 258a604

Browse files
authored
Merge pull request #6 from adafruit/patch-fix
Linted
2 parents a0a3457 + 48216c6 commit 258a604

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_oauth2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def refresh_access_token(self):
177177
)
178178
)
179179
resp = self._requests.post(url, headers=headers)
180-
if resp.status_code == 400 or resp.status_code == 404:
180+
if resp.status_code in (400, 404):
181181
return False
182182
json_resp = resp.json()
183183
resp.close()

0 commit comments

Comments
 (0)