From 4ef805a79a233057014a42fead9be4eb022dce81 Mon Sep 17 00:00:00 2001 From: Believethehype <1097224+believethehype@users.noreply.github.com> Date: Sun, 6 Oct 2024 18:14:00 +0200 Subject: [PATCH] Update bot.py --- nostr_dvm/bot.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nostr_dvm/bot.py b/nostr_dvm/bot.py index 497e917..7c9a702 100644 --- a/nostr_dvm/bot.py +++ b/nostr_dvm/bot.py @@ -539,9 +539,10 @@ class Bot: self.dvm_config) etag = "" - for tag in zapped_event.tags(): - if tag.as_vec()[0] == "e": - etag = tag.as_vec()[1] + if zapped_event is not None: + for tag in zapped_event.tags(): + if tag.as_vec()[0] == "e": + etag = tag.as_vec()[1] user = await get_or_add_user(self.dvm_config.DB, sender, client=self.client, config=self.dvm_config)