diff options
-rw-r--r-- | weather-widget/weather.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/weather-widget/weather.lua b/weather-widget/weather.lua index b6b3c11..7e65901 100644 --- a/weather-widget/weather.lua +++ b/weather-widget/weather.lua @@ -395,7 +395,10 @@ local function worker(args) if not warning_shown then if ( stderr ~= 'curl: (52) Empty reply from server' and - stderr ~= 'curl: (28) Failed to connect to api.openweathermap.org port 443: Connection timed out' + stderr ~= 'curl: (28) Failed to connect to api.openweathermap.org port 443: Connection timed out' and + stderr:find( + '^curl: %(18%) transfer closed with %d+ bytes remaining to read$' + ) ~= nil ) then show_warning(stderr) end |