Jgreen has submitted this change and it was merged.

Change subject: attempt to isolate and squelch harmless warning in OTRS 
ticket-mail export function
......................................................................


attempt to isolate and squelch harmless warning in OTRS ticket-mail export 
function

Change-Id: I2955d27d47490f1019d0dcf662d9f875b548ba5d
---
M files/otrs/otrs.TicketExport2Mbox.pl
1 file changed, 6 insertions(+), 1 deletion(-)

Approvals:
  Jgreen: Checked; Looks good to me, approved
  jenkins-bot: Verified



diff --git a/files/otrs/otrs.TicketExport2Mbox.pl 
b/files/otrs/otrs.TicketExport2Mbox.pl
index 8a40bfb..fc87e2d 100755
--- a/files/otrs/otrs.TicketExport2Mbox.pl
+++ b/files/otrs/otrs.TicketExport2Mbox.pl
@@ -111,7 +111,12 @@
                );
                if (@TicketArticleIds) {
                        for my $ArticleID (@TicketArticleIds) {
-                               printArticle($ArticleID);
+                               eval {
+                                       printArticle($ArticleID);
+                               };
+                               if ($@) {
+                                       printlog("printArticle error: $@");
+                               }
                        }
                        closeTicket($TicketID) if defined $Close;
                } else {

-- 
To view, visit https://gerrit.wikimedia.org/r/172411
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I2955d27d47490f1019d0dcf662d9f875b548ba5d
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Jgreen <[email protected]>
Gerrit-Reviewer: Jgreen <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to