Skip to content
Prev Previous commit
hytale: drop 403 from authed_request retry; 403 means no entitlement,…
… refresh won't help
  • Loading branch information
Xytronix committed May 23, 2026
commit a8a52d779ca10405dbee0bab1910bec3fe9c83c6
2 changes: 1 addition & 1 deletion games/hytale/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def send():
return self.session.request(method, url,
headers={**extra, 'Authorization': f'Bearer {self.state.access_token}'}, **kwargs)
resp = send()
if resp.status_code in (401, 403) and (self._refresh() or self._device_flow()):
if resp.status_code == 401 and (self._refresh() or self._device_flow()):
resp = send()
return resp

Expand Down