Only catch QueryException when getting options
This partly reverts commit c53dafeb6741a722aa02b199b88666161ce33d12.
This commit is contained in:
parent
11ac5cbfc7
commit
b5e060980a
|
|
@ -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 = [];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user