From 33b395b5761d143de7c06fc159cdb491a1f1654b Mon Sep 17 00:00:00 2001 From: dklawren Date: Thu, 20 Sep 2018 16:05:56 -0400 Subject: Bug 1492511 - Code to updating subscriber values for current private bugs is throwing errors in the phabbugz log --- extensions/PhabBugz/lib/Feed.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extensions/PhabBugz/lib/Feed.pm b/extensions/PhabBugz/lib/Feed.pm index 2dbeef6a7..b338e9a72 100644 --- a/extensions/PhabBugz/lib/Feed.pm +++ b/extensions/PhabBugz/lib/Feed.pm @@ -636,6 +636,11 @@ sub process_new_user { foreach my $attachment (@attachments) { my ($revision_id) = ($attachment->filename =~ PHAB_ATTACHMENT_PATTERN); + if (!$revision_id) { + WARN("Skipping " . $attachment->filename . " on bug $bug_id. Filename should be fixed."); + next; + } + INFO("Processing revision D$revision_id"); my $revision = Bugzilla::Extension::PhabBugz::Revision->new_from_query( -- cgit v1.2.3-24-g4f1b