fix: log errors in inject_company_context instead of silently swallowing
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
8d89b67424
commit
441fb524d1
3
app.py
3
app.py
@ -393,7 +393,8 @@ def inject_company_context():
|
|||||||
'active_company': active_company,
|
'active_company': active_company,
|
||||||
'has_multiple_companies': len(user_companies) > 1,
|
'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 {}
|
return {}
|
||||||
finally:
|
finally:
|
||||||
db.close()
|
db.close()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user