From 504c8798af6ee38f928b179dc3c37accae920e8c Mon Sep 17 00:00:00 2001
From: Joel Rosdahl <joel@rosdahl.net>
Date: Tue, 19 Jul 2016 15:20:04 +0200
Subject: Catch Exception instead of BaseException

Catching BaseException will catch too much since that includes e.g.
KeyboardInterrupt.
---
 miniircd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/miniircd b/miniircd
index 2ccfe48..ddd2ba8 100755
--- a/miniircd
+++ b/miniircd
@@ -848,7 +848,7 @@ class Server(object):
                                 server_side=True,
                                 certfile=self.ssl_pem_file,
                                 keyfile=self.ssl_pem_file)
-                        except BaseException as e:
+                        except Exception as e:
                             self.print_error(
                                 "SSL error for connection from %s:%s: %s" % (
                                     addr[0], addr[1], e))
-- 
cgit v1.2.3