Skip to content

Commit

Permalink
Try/catch PredefinedPropertyLabelMismatchException (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwjames authored Sep 16, 2018
1 parent ad9166b commit 27ba1f7
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,11 @@ public function getBodyMessage() {
$prefix = $this->language->getNsText( NS_CATEGORY ) . ':';
}

$labels[] = $prefix . DIProperty::newFromUserLabel( $dataItem->getDBKey() )->getLabel();
try {
$labels[] = $prefix . DIProperty::newFromUserLabel( $dataItem->getDBKey() )->getLabel();
} catch ( \SMW\Exception\PredefinedPropertyLabelMismatchException $e ) {
continue;
}
}

$msg = wfMessage( "notification-body-{$this->type}" );
Expand Down

0 comments on commit 27ba1f7

Please sign in to comment.