Skip to content

Commit

Permalink
Do not throw exception when setting the ID fails
Browse files Browse the repository at this point in the history
The function returns false anyway; failing more silently is preferrable.

Fixes symphonycms#310
  • Loading branch information
michael-e committed Mar 3, 2019
1 parent 0d42c04 commit ac8fef6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions extension.driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -531,9 +531,6 @@ public function setMembersSection($section_id) {

return true;
}
else {
throw new Exception(sprintf('Setting the active Members section to %d failed.', $section_id));
}

return false;
}
Expand Down

0 comments on commit ac8fef6

Please sign in to comment.