[Fix] Error Handling: Refactor authentication response handling to avoid exposing sensitive data.

This commit is contained in:
misyaguziya
2025-12-30 06:07:46 +09:00
parent 4031a5556d
commit 6014c2d362
2 changed files with 40 additions and 78 deletions

View File

@@ -272,8 +272,8 @@ class ManagedProperty:
if self.readonly:
raise AttributeError(f"Cannot set read-only property '{self.name}'")
# Type check if requested
if self.type_ is not None and not isinstance(value, self.type_):
# Type check if requestedNoneは常に許可
if self.type_ is not None and value is not None and not isinstance(value, self.type_):
return
# Allowed-values check: can be an iterable or a callable