Skip to content

Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.

fix(billing): widen tracking exception catch so post-payment page never crashes

Paulo Castellanoeebe510a3107
diff --git a/app/Http/Controllers/App/BillingController.php b/app/Http/Controllers/App/BillingController.php
index 71bd36b33..d955b6ea7 100644
--- a/app/Http/Controllers/App/BillingController.php
+++ b/app/Http/Controllers/App/BillingController.php
@@ -11,8 +11,8 @@ use Illuminate\Http\Request;
use Illuminate\Support\Facades\Gate;
use Inertia\Inertia;
use Inertia\Response;
-use Stripe\Exception\ApiErrorException as StripeApiErrorException;
use Symfony\Component\HttpFoundation\Response as SymfonyResponse;
+use Throwable;
class BillingController extends Controller
{
@@ -101,7 +101,7 @@ class BillingController extends Controller
$sessionId,
['expand' => ['line_items.data.price']],
);
- } catch (StripeApiErrorException) {
+ } catch (Throwable) {
return null;
}