We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1154387 commit 13865a4Copy full SHA for 13865a4
1 file changed
src/WordPress/QueryTrait.php
@@ -23,6 +23,7 @@ trait QueryTrait
23
* and that a connection can be established.
24
*
25
* @return bool True if database is configured, false otherwise
26
+ * @throws Exception
27
*/
28
public function isDatabaseConfigured(): bool
29
{
@@ -38,11 +39,7 @@ public function isDatabaseConfigured(): bool
38
39
return false;
40
}
41
- try {
42
- DB::connection()->getPdo();
43
- } catch (\Exception) {
44
- return false;
45
- }
+ DB::connection()->getPdo();
46
47
return true;
48
0 commit comments