Skip to content

Commit

Permalink
🚑 sync: return None when dynamic field not yet created
Browse files Browse the repository at this point in the history
On reading property it's not a error if field is not created, it just mean that
the property was never set before.
  • Loading branch information
yelizariev committed May 12, 2024
1 parent 17753a3 commit 6aeadf6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sync/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,7 @@ def _get_sync_property(self, property_name, property_type):
)

if not field:
raise exceptions.UserError(
f"Field '{field_name}' not found for the current model '{self._name}'."
)
return None

res_id = f"{self._name},{self.id}"
prop = Property.search(
Expand Down

0 comments on commit 6aeadf6

Please sign in to comment.