Skip to content

Commit

Permalink
fix bug in init_cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Apr 28, 2024
1 parent 859c330 commit 8a3787f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deltabot_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import qrcode
from appdirs import user_config_dir
from deltachat2 import Bot, Event, EventType, IOTransport, JsonRpcError, Rpc
from deltachat2 import Bot, CoreEvent, Event, EventType, IOTransport, JsonRpcError, Rpc
from deltachat2.events import EventFilter, HookCollection, HookDecorator, RawEvent
from rich.logging import RichHandler

Expand Down Expand Up @@ -215,7 +215,7 @@ def configure() -> None:
while True:
raw_event = bot.rpc.get_next_event()
accid = raw_event.context_id
event = raw_event.event
event = CoreEvent(raw_event.event)
if event.kind == EventType.CONFIGURE_PROGRESS:
if event.comment:
bot.logger.info(event.comment)
Expand Down

0 comments on commit 8a3787f

Please sign in to comment.