Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions entanglement/protocol/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ def _handle_receive(self, sync_repr, flags):
try:
self._handle_meta(sync_repr, flags)
if '_sync_type' not in sync_repr: # metadata only
logger.error(f'unrecognized message: {sync_repr}')
return
response_for = None
if flags&_MSG_FLAG_RESPONSE_NEEDED:
Expand Down
7 changes: 4 additions & 3 deletions entanglement/sql/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,11 +585,12 @@ def sync_owner_id(self):

@property
def _sync_owner(self):
return self.sync_owner.id
return self.sync_owner and self.sync_owner.id

@_sync_owner.setter
def _sync_owner(self, val):
if val !=self._sync_owner:
raise ValueError('Cannot Change sync_owner this way')
if val != self._sync_owner:
raise ValueError('Cannot change sync_owner this way')

_sync_owner:GUID = interface.sync_property(_sync_owner)

Expand Down