Skip to content

Commit 0f054e0

Browse files
committed
replace SystemException with Throwable
1 parent 42911b2 commit 0f054e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

files/lib/action/AbstractDiscordInteractionAction.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
use Psr\Http\Message\ResponseInterface;
1212
use Psr\Http\Message\ServerRequestInterface;
1313
use Psr\Http\Server\RequestHandlerInterface;
14+
use Throwable;
1415
use UnexpectedValueException;
1516
use wcf\data\discord\bot\DiscordBotList;
1617
use wcf\data\discord\interaction\log\DiscordInteractionLogAction;
1718
use wcf\system\discord\DiscordApi;
1819
use wcf\system\discord\interaction\callback\PingInteractionCallback;
19-
use wcf\system\exception\SystemException;
2020
use wcf\util\JSON;
2121

2222
abstract class AbstractDiscordInteractionAction implements RequestHandlerInterface, IDiscordInteractionAction
@@ -44,7 +44,7 @@ public function handle(ServerRequestInterface $request): ResponseInterface
4444
$data = [];
4545
try {
4646
$data = JSON::decode($body, true);
47-
} catch (SystemException) {
47+
} catch (Throwable) {
4848
throw new BadMethodCallException('body is not valid json');
4949
}
5050

0 commit comments

Comments
 (0)