damog-feedbag 0.5.8 → 0.5.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/feedbag.rb +4 -1
- metadata +1 -1
data/lib/feedbag.rb
CHANGED
@@ -16,7 +16,6 @@
|
|
16
16
|
# You should have received a copy of the GNU General Public License
|
17
17
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
18
18
|
|
19
|
-
|
20
19
|
require "rubygems"
|
21
20
|
require "hpricot"
|
22
21
|
require "open-uri"
|
@@ -63,6 +62,10 @@ module Feedbag
|
|
63
62
|
return self.add_feed(url, nil) if v.valid?
|
64
63
|
rescue LoadError
|
65
64
|
# scoo
|
65
|
+
rescue REXML::ParseException
|
66
|
+
# usually indicates timeout
|
67
|
+
# TODO: actually find out timeout. use Terminator?
|
68
|
+
$stderr.puts "Feed looked like feed but might not have passed validation or timed out"
|
66
69
|
rescue => ex
|
67
70
|
$stderr.puts "#{ex.class} error ocurred with: `#{url}': #{ex.message}"
|
68
71
|
end
|