diff --git a/bricktracker/fields.py b/bricktracker/fields.py index 37d5a21..fc5100b 100644 --- a/bricktracker/fields.py +++ b/bricktracker/fields.py @@ -4,6 +4,9 @@ from typing import Any # SQLite record fields class BrickRecordFields(object): def __getattr__(self, name: str, /) -> Any: + if name not in self.__dict__: + raise AttributeError(name) + return self.__dict__[name] def __setattr__(self, name: str, value: Any, /) -> None: