Skip to content

Commit

Permalink
Bug fixed: ConfigTemplate._frozen has not been initialized when using.
Browse files Browse the repository at this point in the history
  • Loading branch information
ATATC committed Apr 12, 2024
1 parent cab8205 commit f0c0776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leads/config/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def load(self, d: dict[str, _Any]) -> None:
self.refresh()

def _writable(self, name: str) -> bool:
return not self._frozen or name.startswith("w_")
return not hasattr(self, "_frozen") or not self._frozen or name.startswith("w_")

def set(self, name: str, value: _Any) -> None:
"""
Expand Down

0 comments on commit f0c0776

Please sign in to comment.