summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2016-07-19 15:20:04 +0200
committerJoel Rosdahl <joel@rosdahl.net>2016-07-19 15:20:04 +0200
commit504c8798af6ee38f928b179dc3c37accae920e8c (patch)
tree6acb73b0ea2e944d401108cd466df5832383be72
parentd5161a7a42e59b3455afe40ef26e6ed8a2721b95 (diff)
downloadminiircd-504c8798af6ee38f928b179dc3c37accae920e8c.tar.gz
miniircd-504c8798af6ee38f928b179dc3c37accae920e8c.zip
Catch Exception instead of BaseException
Catching BaseException will catch too much since that includes e.g. KeyboardInterrupt.
-rwxr-xr-xminiircd2
1 files changed, 1 insertions, 1 deletions
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))