Skip to content

Commit ad9b0e6

Browse files
rhtandersk
authored andcommitted
IRC: Handle error by displaying the error message.
The proper solution would be to handle each errors differently. But for now, logging the message is at least informative to the user.
1 parent 28cae1a commit ad9b0e6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

zulip/integrations/bridge_with_irc/irc_mirror_backend.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import logging
12
import multiprocessing as mp
23
import sys
34
from typing import Any, Dict, Optional
@@ -141,3 +142,6 @@ def on_dccchat(self, c: ServerConnection, e: Event) -> None:
141142
except ValueError:
142143
return
143144
self.dcc_connect(address, port)
145+
146+
def on_error(self, c: ServerConnection, e: Event) -> None:
147+
logging.error("error from server: %s", e.target)

0 commit comments

Comments
 (0)