diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2016-07-19 15:20:04 +0200 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2016-07-19 15:20:04 +0200 |
commit | 504c8798af6ee38f928b179dc3c37accae920e8c (patch) | |
tree | 6acb73b0ea2e944d401108cd466df5832383be72 | |
parent | d5161a7a42e59b3455afe40ef26e6ed8a2721b95 (diff) | |
download | miniircd-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-x | miniircd | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) |