diff options
author | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2020-07-14 09:58:01 +0200 |
---|---|---|
committer | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2020-07-14 10:00:20 +0200 |
commit | 088a4694e8ab42f083f5161a60e0b47784dd1201 (patch) | |
tree | 4145c0f271e5cc7e0c311044e714347dcec63ccd /weather-widget | |
parent | 72b4a2d4ca47dee6b432531b5f1112f0b90bb429 (diff) |
🚨 Don't show a warning on faulty network
Ref #167
Diffstat (limited to 'weather-widget')
-rw-r--r-- | weather-widget/weather.lua | 4 |
1 files changed, 3 insertions, 1 deletions
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) |