Skip to content

Commit

Permalink
Update docs example to fix empty blocks of commit (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshalX authored Aug 15, 2024
1 parent 1c408d4 commit 2cc248a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/source/atproto_firehose/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ By default :obj:`parse_subscribe_repos_message` doesn't decode inner DAG-CBOR. P
if not isinstance(commit, models.ComAtprotoSyncSubscribeRepos.Commit):
return
if not commit.blocks:
return
car = CAR.from_bytes(commit.blocks)
Here is how you can process labeling events:
Expand Down

0 comments on commit 2cc248a

Please sign in to comment.