#480 — [Bug]: UnboundLocalError: cannot access local variable ‘mutable_bas’
Repo: Twill-AI/facade State: closed | Status: done Assignee: Unassigned
Created: 2025-08-12 · Updated: 2025-09-15
Description
Steps to reproduce
- In staging open OpenAPI UI and login under any partner
- Call “update merchant” API for 67b7cead-224f-4a04-b603-c9579510b5f0 (with unclear yet payload).
Expected behavior
Successfully updated merchant.
Actual behavior
500 status code in response with “detail” content and logs:
2025-08-11 20:13:05.538|ERROR|master|endpoint_helpers:80|PUT http://staging.twillai.com/api/v1/partner/merchants/a12e63ed-59a2-45f8-9705-e808f3428678 raised builtins.UnboundLocalError: cannot access local variable 'mutable_bas' where it is not associated with a value
Implementation details
Notes
Add implementation notes, blockers, and context here
Related
Add wikilinks to related people, meetings, or other tickets