diff options
author | garret <garret@airmail.cc> | 2022-12-01 00:12:57 +0000 |
---|---|---|
committer | garret <garret@airmail.cc> | 2023-02-16 05:34:26 +0000 |
commit | ec034bd2f10ebdc7a0994a48a1fb613ad4a91f4d (patch) | |
tree | ddc2d80704a41a4265a378bc622485df4bdf9a5f /make-feed.lua | |
parent | d13ae55fd2d4e0d0991da9b01fe01100f714d12c (diff) | |
download | depctrl-feedmaker-ec034bd2f10ebdc7a0994a48a1fb613ad4a91f4d.tar.gz depctrl-feedmaker-ec034bd2f10ebdc7a0994a48a1fb613ad4a91f4d.tar.bz2 depctrl-feedmaker-ec034bd2f10ebdc7a0994a48a1fb613ad4a91f4d.zip |
some more error handling in clean_depctrl
Diffstat (limited to 'make-feed.lua')
-rwxr-xr-x | make-feed.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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] |