summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorlnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972>2005-06-10 12:05:09 +0000
committerlnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972>2005-06-10 12:05:09 +0000
commit597855ef32b7831de0b5abbd6b816a4eb51a59e8 (patch)
tree31e293239dad90a811b67b763625d0afd8c4fd02 /lib
parent2c6f29865604c2578ec69e0c1588b356eb5c02fd (diff)
downloadfeed2imap-597855ef32b7831de0b5abbd6b816a4eb51a59e8.tar.gz
feed2imap-597855ef32b7831de0b5abbd6b816a4eb51a59e8.tar.bz2
feed2imap-597855ef32b7831de0b5abbd6b816a4eb51a59e8.zip
git-svn-id: svn+ssh://svn.gna.org/svn/feed2imap/trunk/feed2imap@31 f70e237a-67f3-0310-a06c-d2b8a7116972
Diffstat (limited to '')
-rw-r--r--lib/feed2imap/feed2imap.rb10
1 files changed, 5 insertions, 5 deletions
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