Skip to content

Commit c1f9334

Browse files
authored
switch Exception to Throwable
1 parent 4fab446 commit c1f9334

File tree

1 file changed

+2
-3
lines changed
  • app/code/core/Mage/Admin/Model/Resource

1 file changed

+2
-3
lines changed

app/code/core/Mage/Admin/Model/Resource/User.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ protected function _afterLoad(Mage_Core_Model_Abstract $user)
196196
*
197197
* @param Mage_Core_Model_Abstract $user
198198
* @return $this
199-
* @throws Exception
199+
* @throws Throwable
200200
*/
201201
public function delete(Mage_Core_Model_Abstract $user)
202202
{
@@ -213,8 +213,7 @@ public function delete(Mage_Core_Model_Abstract $user)
213213
$adapter->delete($this->getMainTable(), $conditions);
214214
$adapter->delete($this->getTable('admin/role'), $conditions);
215215
$adapter->commit();
216-
}
217-
catch (Exception $e) {
216+
} catch (Throwable $e) {
218217
$adapter->rollBack();
219218
throw $e;
220219
}

0 commit comments

Comments
 (0)