Only catch QueryException when getting options

This partly reverts commit c53dafeb6741a722aa02b199b88666161ce33d12.
This commit is contained in:
printempw 2018-08-06 15:12:56 +08:00
parent 11ac5cbfc7
commit b5e060980a

View File

@ -18,9 +18,7 @@ class OptionRepository extends Repository
{
try {
$options = DB::table('options')->get();
} catch (Exception $e) {
$options = [];
} catch (PDOException $e) {
} catch (QueryException $e) {
$options = [];
}