Skip to content

Commit 83949eb

Browse files
committed
Always restore error reporting even when exception is caught
1 parent 9c44600 commit 83949eb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

includes/class-wp-php-console.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,7 @@ public function connect() {
117117
if ( ! $this->connector instanceof PhpConsole\Connector ) {
118118
try {
119119
$this->connector = PhpConsole\Connector::getInstance();
120-
} catch ( \Exception $e ) {
121-
return;
122-
}
120+
} catch ( \Exception $e ) {}
123121
}
124122

125123
// restore error reporting

0 commit comments

Comments
 (0)