Skip to content

Commit

Permalink
util: accept sync interests with no entries
Browse files Browse the repository at this point in the history
  • Loading branch information
tianyuan129 committed Sep 23, 2024
1 parent fce1297 commit e05e7bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ndn_python_repo/utils/passive_svs.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ def sync_handler(self, name: FormalName, _param: InterestParam, _app_param: Bina
except (DecodeError, IndexError) as e:
logging.error(f'Unable to decode state vector [{Name.to_str(name)}]: {e}')
return
if remote_sv_pkt is None or not remote_sv_pkt.entries:
if remote_sv_pkt is None:
logging.error(f'Sync Interest does not contain state vectors')
return
remote_sv = remote_sv_pkt.entries

Expand Down

0 comments on commit e05e7bc

Please sign in to comment.