From dac23667df7297d95ed201acc3af6c33d261d015 Mon Sep 17 00:00:00 2001 From: Your Name <119736744+aborayan2022@users.noreply.github.com> Date: Tue, 31 Mar 2026 22:33:59 +0200 Subject: [PATCH] fix: Fix stripe_service.py postgres column check --- backend/app/services/stripe_service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/app/services/stripe_service.py b/backend/app/services/stripe_service.py index f2ebc31..3fcdbd6 100644 --- a/backend/app/services/stripe_service.py +++ b/backend/app/services/stripe_service.py @@ -57,7 +57,8 @@ def _ensure_stripe_columns(): cursor.execute( "SELECT EXISTS (SELECT FROM information_schema.tables WHERE table_name = 'users')" ) - if not cursor.fetchone()[0]: + row = cursor.fetchone() + if not row or not row[0]: return cursor.execute( "SELECT column_name FROM information_schema.columns WHERE table_name = 'users'"