From 5c0c95068fec56221cb57ffa905f8c98b80a4f08 Mon Sep 17 00:00:00 2001 From: TheSnoozer Date: Sat, 20 Jan 2018 19:45:41 -0500 Subject: [PATCH] fix AttributeError: 'Packet' object has no attribute 'name' (should be 'packet_name' - see https://github.com/ammaraskar/pyCraft/blob/master/minecraft/networking/packets/packet.py#L9) --- minecraft/networking/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minecraft/networking/connection.py b/minecraft/networking/connection.py index ab8c988..dffa48c 100644 --- a/minecraft/networking/connection.py +++ b/minecraft/networking/connection.py @@ -433,7 +433,7 @@ class NetworkingThread(threading.Thread): # Ignore the earlier exception if a disconnect packet is # received, as it may have been caused by trying to write to # thw closed socket, which does not represent a program error. - if exc_info is not None and packet.name == 'disconnect': + if exc_info is not None and packet.packet_name == "disconnect": exc_info = None if exc_info is not None: