Skip to content

Commit

Permalink
rss: protect against nil field
Browse files Browse the repository at this point in the history
This happens when the filter tries to wrap a non-existing field, and in
custom filters it's probably a sign that the wrong field are being
accessed. It would probably be nicer to raise a warning about this, but
I'm too lazy to add that now.
  • Loading branch information
Oblomov committed Jan 21, 2013
1 parent f506b9a commit 09f54bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/rbot/plugins/rss.rb
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def make_stream(line1, line2, s, h={})
# do nothing
else
warning "ignoring #{v.inspect} wrapping of unknown class"
end
end unless ss[nk].nil?
else
subs[k] = v
end
Expand Down

0 comments on commit 09f54bf

Please sign in to comment.