diff --git a/nostr/event.py b/nostr/event.py index eab1042..c213d5e 100644 --- a/nostr/event.py +++ b/nostr/event.py @@ -59,7 +59,7 @@ def id(self) -> str: # Always recompute the id to reflect the up-to-date state of the Event assert self.public_key, "Event public key is missing" assert self.created_at, "Event created_at is missing" - assert self.content, "Event content is missing" + assert self.content is not None, "Event content is missing" return Event.compute_id( self.public_key, self.created_at, self.kind, self.tags, self.content )