From 597855ef32b7831de0b5abbd6b816a4eb51a59e8 Mon Sep 17 00:00:00 2001 From: lnu Date: Fri, 10 Jun 2005 12:05:09 +0000 Subject: git-svn-id: svn+ssh://svn.gna.org/svn/feed2imap/trunk/feed2imap@31 f70e237a-67f3-0310-a06c-d2b8a7116972 --- lib/feed2imap/feed2imap.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/feed2imap/feed2imap.rb') diff --git a/lib/feed2imap/feed2imap.rb b/lib/feed2imap/feed2imap.rb index 3083e88..59997e8 100644 --- a/lib/feed2imap/feed2imap.rb +++ b/lib/feed2imap/feed2imap.rb @@ -19,6 +19,9 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA =end +# Feed2Imap version +F2I_VERSION = '0.4' + require 'feed2imap/config' require 'feed2imap/cache' require 'feed2imap/channel' @@ -26,9 +29,6 @@ require 'feed2imap/httpfetcher' require 'logger' require 'thread' -# Feed2Imap version -F2I_VERSION = '0.4' - class Feed2Imap def initialize(verbose, cacherebuild, configfile) @logger = Logger::new(STDOUT) @@ -110,8 +110,8 @@ class Feed2Imap next if f.body.nil? # means 304 begin channel = Channel::new(f.body) - rescue - @logger.fatal("Error while parsing #{f.name}: #{$!}") + rescue Exception => e + @logger.fatal("Error while parsing #{f.name}: #{e}") next end begin -- cgit v1.2.3-54-g00ecf