🚨 Don't show a warning on faulty network

Ref #167
This commit is contained in:
Sviatoslav Sydorenko 2020-07-14 09:58:01 +02:00
parent 72b4a2d4ca
commit 088a4694e8
No known key found for this signature in database
GPG Key ID: 9345E8FEA89CA455
1 changed files with 3 additions and 1 deletions

View File

@ -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)