summaryrefslogtreecommitdiff
path: root/weather-widget
diff options
context:
space:
mode:
authorPavel Makhov <pmakhov@touchtunes.com>2019-02-26 11:17:07 -0500
committerPavel Makhov <pmakhov@touchtunes.com>2019-02-26 11:17:07 -0500
commitb33275fa2aab2b0d753f2bfc8a5b7720a117b549 (patch)
treed4590b153c12082a52d9197d26a4a62c04ac29cb /weather-widget
parentce02f3bf7ed808de766b34e17f19f2ad4ef15c99 (diff)
parent737d8bcebd5705f38ef0aeb6b884e722761c4903 (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',