Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
believethehype committed Jun 14, 2024
1 parent 32664f8 commit 9d00d5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nostr_dvm/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ async def handle(self, relay_url, subscription_id, nostr_event):
await handle_dm(nostr_event, False)
except Exception as e:
print(f"Error during content NIP04 decryption: {e}")
elif nostr_event.kind() == Kind.from_enum(KindEnum.GIFT_WRAP():
elif nostr_event.kind() == Kind.from_enum(KindEnum.GIFT_WRAP()):
try:
await handle_dm(nostr_event, True)
except Exception as e:
Expand Down
2 changes: 1 addition & 1 deletion nostr_dvm/utils/nostr_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async def get_event_by_id(event_id: str, client: Client, config=None) -> Event |

id_filter = Filter().id(event_id).limit(1)
#events = client.get_events_of([id_filter], timedelta(seconds=config.RELAY_TIMEOUT))
events = asyncio.run(get_events_async(client, id_filter, config.RELAY_TIMEOUT))
events = await get_events_async(client, id_filter, config.RELAY_TIMEOUT)

if len(events) > 0:

Expand Down

0 comments on commit 9d00d5a

Please sign in to comment.