Show exceptions by default and add `handle_exception' parameter to Connection.

This commit is contained in:
joo committed 2016-11-20 06:04:22 +00:00
1 parent 115693f8c3
commit d72f05c8b0
2 files changed
+30 -4

No files matched your search

+2 -1
View File
@@ -24,7 +24,8 @@ class _ConnectTest(unittest.TestCase):
addr, port = server.listen_socket.getsockname()
client = connection.Connection(
addr, port, username='User', initial_version=client_version)
addr, port, username='User', initial_version=client_version,
handle_exception=False)
client.register_packet_listener(
lambda packet: logging.debug('[ ->C] %s' % packet), packets.Packet)