From 7f86245a4f74d52a13bb7ce68e0745dbdf87a676 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 28 Jan 2016 20:08:13 +0100 Subject: [PATCH] Improved error handling. --- app/models/channel/email_parser.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/channel/email_parser.rb b/app/models/channel/email_parser.rb index 8a5bc0066..15e8a6fe4 100644 --- a/app/models/channel/email_parser.rb +++ b/app/models/channel/email_parser.rb @@ -284,6 +284,8 @@ class Channel::EmailParser if result && result[0] && result[0][1] filename = result[0][1] end + rescue + Rails.logger.debug 'Unable to get filename' end end