|
|
@@ -76,7 +76,9 @@ class _HomestayClient:
|
|
|
raise HomestayAuthError(f'Homestay calendar fetch failed (HTTP {r.status_code}) — run: {_AUTH_HINT}')
|
|
|
if 'application/json' not in r.headers.get('content-type', ''):
|
|
|
mark_stale('homestay')
|
|
|
- raise HomestayAuthError(f'Homestay session expired — run: {_AUTH_HINT}')
|
|
|
+ raise HomestayAuthError(
|
|
|
+ f'Homestay session expired (HTTP {r.status_code}, content-type: {r.headers.get("content-type", "none")!r}) — run: {_AUTH_HINT}'
|
|
|
+ )
|
|
|
return r.json()
|
|
|
|
|
|
async def _get_calendar_data(self) -> dict:
|