summaryrefslogtreecommitdiff
path: root/weather-widget
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@gmail.com>2019-02-24 09:24:49 -0500
committerstreetturtle <streetturtle@gmail.com>2019-02-24 09:24:49 -0500
commitc671bb3dd3e7c44c75e4b8faaf8559c4495dd421 (patch)
treea3ff4e81fe127500393e49394039badd5a88d5dc /weather-widget
parent2400807c896aa035da3138864f2fb3ad173a2734 (diff)
parent98bcfd09d3dd894fbfb0f5c005aeb3cba67e8a59 (diff)
Merge branch 'master' of github.com:streetturtle/awesome-wm-widgets
Diffstat (limited to 'weather-widget')
-rw-r--r--weather-widget/weather.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/weather-widget/weather.lua b/weather-widget/weather.lua
index 484c2c6..d5f07f8 100644
--- a/weather-widget/weather.lua
+++ b/weather-widget/weather.lua
@@ -97,7 +97,7 @@ weather_timer:connect_signal("timeout", function ()
.. secrets.weather_widget_city
.. '&appid=' .. secrets.weather_widget_api_key
.. '&units=' .. secrets.weather_widget_units)
- if (status ~= 200) then
+ if (status ~= 200 and resp_json ~= nil) then
local err_resp = json.decode(resp_json)
naughty.notify{
title = 'Weather Widget Error',