Skip to content

Commit 729e2c4

Browse files
tahierhussainclaude
andcommitted
fix(cloud): prevent credit check from being silently bypassed
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent b85dbfa commit 729e2c4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • backend/backend/core/routers/chat

backend/backend/core/routers/chat/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ def fetch_token_balance(
107107
f"Token balance check passed for organization {organization.organization_id}. "
108108
f"Required: {tokens_required}, Available: {balance_info.get('current_balance', 0)}"
109109
)
110-
except Exception:
110+
except ImportError:
111+
# OSS mode: pluggable_apps not installed, skip billing check
111112
pass
112113

113114
def persist_prompt(self, request: Request, project_id: str, *args, **kwargs) -> Response:

0 commit comments

Comments
 (0)