Skip to content

Commit

Permalink
switch Exception to Throwable
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano committed Jun 15, 2022
1 parent 4fab446 commit c1f9334
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/code/core/Mage/Admin/Model/Resource/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ protected function _afterLoad(Mage_Core_Model_Abstract $user)
*
* @param Mage_Core_Model_Abstract $user
* @return $this
* @throws Exception
* @throws Throwable
*/
public function delete(Mage_Core_Model_Abstract $user)
{
Expand All @@ -213,8 +213,7 @@ public function delete(Mage_Core_Model_Abstract $user)
$adapter->delete($this->getMainTable(), $conditions);
$adapter->delete($this->getTable('admin/role'), $conditions);
$adapter->commit();
}
catch (Exception $e) {
} catch (Throwable $e) {
$adapter->rollBack();
throw $e;
}
Expand Down

0 comments on commit c1f9334

Please sign in to comment.