summaryrefslogtreecommitdiff
path: root/lib/feed2imap
diff options
context:
space:
mode:
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
-go.git/commit/go.sum?h=v1.1.0&id=0ea18530f3f732adf141de3612718f8b9d253a91&follow=1'>Bump github.com/emersion/go-message from 0.13.0 to 0.14.0 (#38)dependabot[bot]2-3/+9 2020-11-28Bump github.com/google/go-cmp from 0.5.2 to 0.5.4 (#37)dependabot[bot]2-3/+3 2020-11-23Fix release.ymlv0.5.2René 'Necoro' Neumann1-3/+10 2020-11-23Prepare v0.5.2René 'Necoro' Neumann3-3/+8 2020-11-20Bump github.com/gabriel-vasile/mimetype from 1.1.1 to 1.1.2dependabot[bot]2-3/+3 2020-11-04Clean dependabot.ymlRené 'Necoro' Neumann1-4/+0