From 088a4694e8ab42f083f5161a60e0b47784dd1201 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Tue, 14 Jul 2020 09:58:01 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Don't=20show=20a=20warning=20on?= =?UTF-8?q?=20faulty=20network?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ref #167 --- weather-widget/weather.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/weather-widget/weather.lua b/weather-widget/weather.lua index 4fcdba7..4ae586b 100644 --- a/weather-widget/weather.lua +++ b/weather-widget/weather.lua @@ -393,7 +393,9 @@ local function worker(args) local function update_widget(widget, stdout, stderr) if stderr ~= '' then if not warning_shown then - show_warning(stderr) + if stderr ~= 'curl: (52) Empty reply from server' then + show_warning(stderr) + end warning_shown = true widget:is_ok(false) tooltip:add_to_object(widget)