Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Handle missing rss data
Browse files Browse the repository at this point in the history
  • Loading branch information
playsamay4 authored Dec 6, 2023
1 parent 6724d2d commit 127d1a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wires.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ local BBCUKSCR = [[
parser:parse(wireGatherData)
--if i == 1 then print(inspect(handler)) end
if handler.root.rss == nil then return end
local wireGatherTable = handler.root.rss.channel.item
local wireData = handler.root.rss.channel
Expand Down Expand Up @@ -86,4 +87,4 @@ function wires.Update(dt)
end
end

return wires
return wires

0 comments on commit 127d1a5

Please sign in to comment.