From db7ec91545c7c3dcd1ef8006c10a3ccc6946de60 Mon Sep 17 00:00:00 2001 From: zebra-lucky Date: Sun, 30 Nov 2025 16:15:42 +0200 Subject: [PATCH] fix on_dkg_init for work on multiple IRC channels --- src/jmclient/frost_clients.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jmclient/frost_clients.py b/src/jmclient/frost_clients.py index cd3ca64..9bfd083 100644 --- a/src/jmclient/frost_clients.py +++ b/src/jmclient/frost_clients.py @@ -198,7 +198,8 @@ class DKGClient: def on_dkg_init(self, nick, pubkeyhash, session_id, sig): try: if session_id in self.dkg_sessions: - raise Exception(f'session {session_id.hex()} already exists') + jlog.debug(f'session {session_id.hex()} already exists') + return None, None, None, None, None pubkey = self.find_pubkey_by_pubkeyhash(pubkeyhash) if not pubkey: raise Exception(f'pubkey for {pubkeyhash.hex()} not found')