This commit is contained in:
pporcheret
2026-10-30 22:10:03 +01:00
parent 7f26f9b015
commit 90ffa635a0
161 changed files with 19042 additions and 111 deletions
+1 -1
View File
@@ -666,7 +666,7 @@ def build_payload(q: str = '', date: str = '', label: str = '', refresh: bool =
illustration = None
illustration_error = None
try:
illustration = _generate_illustration(day, outfits, focus_label, refresh=refresh)
illustration = _generate_illustration(day, outfits, focus_label, refresh=(refresh or os.getenv("ALFRED_WEATHER_ALWAYS_NEW", "true").strip().lower() in ("true", "1", "yes", "on")))
except (OSError, ValueError, RuntimeError, TimeoutError, ImportError, requests.RequestException) as exc:
illustration_error = f'{type(exc).__name__} : {exc}'
print(f'[ALFRED METEO] Illustration indisponible : {illustration_error}', flush=True)