From 441fb524d13daee30365fbbd95cf5ae09099a250 Mon Sep 17 00:00:00 2001 From: Maciej Pienczyn Date: Sat, 11 Apr 2026 09:47:48 +0200 Subject: [PATCH] fix: log errors in inject_company_context instead of silently swallowing Co-Authored-By: Claude Opus 4.6 (1M context) --- app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index b13d3a0..335ffc9 100644 --- a/app.py +++ b/app.py @@ -393,7 +393,8 @@ def inject_company_context(): 'active_company': active_company, 'has_multiple_companies': len(user_companies) > 1, } - except Exception: + except Exception as e: + logger.error(f"inject_company_context error for user {current_user.id}: {e}") return {} finally: db.close()