From 8e2fd225a56e89e5b9e0e8cce6386728552651d7 Mon Sep 17 00:00:00 2001 From: Dpeta <69427753+Dpeta@users.noreply.github.com> Date: Thu, 9 Feb 2023 21:20:42 +0100 Subject: [PATCH] Linting --- irc.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/irc.py b/irc.py index 16940f0..68b5f8e 100644 --- a/irc.py +++ b/irc.py @@ -4,7 +4,9 @@ import random import time import ssl import sys +import select import datetime +import traceback try: from PyQt6 import QtCore, QtGui @@ -995,6 +997,7 @@ class PesterIRC(QtCore.QThread): PchumLog.info('---> recv "CHANNELS: %s ' % (channel)) def listend(self, server, handle, msg): + """End of a LIST response, assume channel list is complete.""" pl = PesterList(self.channel_list) PchumLog.info('---> recv "CHANNELS END"') self.channelListReceived.emit(pl) @@ -1053,7 +1056,7 @@ class PesterIRC(QtCore.QThread): "Failed to pass command, did the server pass an unsupported paramater? " + str(e) ) - except Exception: + except Exception as e: # logging.info("Failed to pass command, %s" % str(e)) PchumLog.exception("Failed to pass command")