diff --git a/client_code/persistence.py b/client_code/persistence.py index 9805b7bf..4539cc1c 100644 --- a/client_code/persistence.py +++ b/client_code/persistence.py @@ -84,7 +84,7 @@ def __get__(self, instance, objtype=None): if instance._delta and self._linked_column in instance._delta else instance._store ) - if store[self._linked_column] is None: + if not store or store[self._linked_column] is None: return None return self._cls(store[self._linked_column], *self._args, **self._kwargs)