diff --git a/src/RemoteWiki.php b/src/RemoteWiki.php index 0ee80ef..3364329 100644 --- a/src/RemoteWiki.php +++ b/src/RemoteWiki.php @@ -6,9 +6,9 @@ use Addwiki\Mediawiki\Api\Client\Auth\UserAndPassword; use Addwiki\Mediawiki\Api\Client\MediaWiki; use Config; -use Exception; use LogicException; use Parser; +use Throwable; use WANObjectCache; /** @@ -163,7 +163,7 @@ private function getGenerator( MediaWiki $api ): ?string { } $this->cache->set( $reqKey, $version, $cacheTTL ); return $version; - } catch ( Exception $e ) { + } catch ( Throwable $e ) { return $this->config->get('RemoteWikiVerbose') ? $e->getMessage() : ''; } } @@ -352,7 +352,7 @@ private function getExtensionsData( MediaWiki $api ) { } $this->cache->set( $reqKey, $extensions, $cacheTTL ); return $extensions; - } catch ( Exception $e ) { + } catch ( Throwable $e ) { return []; } }