v3
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user