summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@users.noreply.github.com>2020-07-14 10:34:57 -0400
committerGitHub <noreply@github.com>2020-07-14 10:34:57 -0400
commit3b7311a9481fab1f60f2fe06e0396b941733437f (patch)
treeedbac71f24b928a9f21ef0e437d67529ff4abbb2
parent8dd2793651e7822582863bad6a4540bdeb29d6c0 (diff)
parent088a4694e8ab42f083f5161a60e0b47784dd1201 (diff)
Merge pull request #169 from webknjaz/bugfixes/167-curl-err-52
🚨 Don't show a warning on faulty network
-rw-r--r--weather-widget/weather.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/weather-widget/weather.lua b/weather-widget/weather.lua
index 21d3d0d..07849c9 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)