Skip to content

Commit

Permalink
Workaround for mediawiki-api-base throwing TypeError instead of Excep…
Browse files Browse the repository at this point in the history
…tion

Ignore all forms of PHP errors here.

MN-114
  • Loading branch information
labster committed Oct 25, 2024
1 parent ef2fe13 commit 0e75090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RemoteWiki.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() : '';
}
}
Expand Down

0 comments on commit 0e75090

Please sign in to comment.