fix(controller): remove 'persona_manager' from _LAZY_MANAGER_DEFAULTS
This commit is contained in:
@@ -1261,12 +1261,12 @@ class AppController:
|
||||
# Manager attributes that are initialized by init_state() but are absent
|
||||
# on a bare AppController() (which some tests construct). Return None
|
||||
# for these so test code that references them without calling init_state
|
||||
# does not crash. hasattr() still returns False for non-mocked access
|
||||
# paths because callers wrap in try/except for AttributeError when they
|
||||
# need to distinguish "lazy" from "absent".
|
||||
# does not crash. NOTE: callers that need to distinguish "lazy" from
|
||||
# "absent" must use try/except AttributeError explicitly; hasattr()
|
||||
# returns True because __getattr__ returns None (a valid attribute
|
||||
# value).
|
||||
_LAZY_MANAGER_DEFAULTS = {
|
||||
"context_preset_manager",
|
||||
"persona_manager",
|
||||
"tool_preset_manager",
|
||||
"preset_manager",
|
||||
"vendor_state",
|
||||
|
||||
Reference in New Issue
Block a user