From aa50feed73940bf1cb865bf88d2617649f59d5ce Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Thu, 29 Jun 2017 12:14:50 +0200 Subject: [PATCH] Working on issue #1161 - Broken error handing for unaccessable comment attachments. --- lib/import/zendesk/ticket/comment/attachment.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/import/zendesk/ticket/comment/attachment.rb b/lib/import/zendesk/ticket/comment/attachment.rb index 9c1ec687a..9ec25aaa9 100644 --- a/lib/import/zendesk/ticket/comment/attachment.rb +++ b/lib/import/zendesk/ticket/comment/attachment.rb @@ -3,7 +3,7 @@ module Import class Ticket class Comment class Attachment - extend Import::Helper + include Import::Helper def initialize(attachment, local_article) @@ -35,6 +35,7 @@ module Import ) return response if response.success? log response.error + nil end end end