From ec034bd2f10ebdc7a0994a48a1fb613ad4a91f4d Mon Sep 17 00:00:00 2001 From: garret Date: Thu, 1 Dec 2022 00:12:57 +0000 Subject: some more error handling in clean_depctrl --- make-feed.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'make-feed.lua') diff --git a/make-feed.lua b/make-feed.lua index 8be2454..e79500c 100755 --- a/make-feed.lua +++ b/make-feed.lua @@ -237,7 +237,7 @@ end local function clean_depctrl(depctrl) local required = {} local feeds = {} - if #depctrl == 0 then return nil end + if depctrl == nil or #depctrl == 0 then return nil end for _, mod in ipairs(depctrl) do if type(mod[1]) ~= "string" then mod = mod[1] end local modname = mod[1] -- cgit v1.2.3-70-g09d2