summaryrefslogtreecommitdiffstats
path: root/extensions/PhabBugz
diff options
context:
space:
mode:
authordklawren <dklawren@users.noreply.github.com>2018-09-20 22:05:56 +0200
committerGitHub <noreply@github.com>2018-09-20 22:05:56 +0200
commit33b395b5761d143de7c06fc159cdb491a1f1654b (patch)
treec8ad9b3bcc9ca816565d12e67f5577c1dcb14e61 /extensions/PhabBugz
parent5e4f8b175bfc4a3283455d29315033d60632e9f7 (diff)
downloadbugzilla-33b395b5761d143de7c06fc159cdb491a1f1654b.tar.gz
bugzilla-33b395b5761d143de7c06fc159cdb491a1f1654b.tar.xz
Bug 1492511 - Code to updating subscriber values for current private bugs is throwing errors in the phabbugz log
Diffstat (limited to 'extensions/PhabBugz')
-rw-r--r--extensions/PhabBugz/lib/Feed.pm5
1 files changed, 5 insertions, 0 deletions
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(