diff --git a/src/Pecee/SimpleRouter/Router.php b/src/Pecee/SimpleRouter/Router.php index cbfbfef..dbabbd9 100644 --- a/src/Pecee/SimpleRouter/Router.php +++ b/src/Pecee/SimpleRouter/Router.php @@ -443,11 +443,7 @@ class Router } } - } catch (\Throwable $e) { - if ($e instanceof Exception) { - return $this->handleException($e); - } - + } catch (Exception $e) { return $this->handleException(new Exception($e->getMessage(), $e->getCode())); }