def load(self): try: self._values = Session.query().get(pk=self.key) except (TypeError, ObjectDoesNotExist): self.create()