From 7457aa89af7aee86b50ea96f3caa28d73a5190d5 Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 8 May 2021 16:47:11 +0100 Subject: [PATCH] Revert "Stop that annoying keyerror - HB3XPL ;-)" This reverts commit 28eeab388c71234d7af7865ee6299cbc209205a4. --- hotspot_proxy_v2.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/hotspot_proxy_v2.py b/hotspot_proxy_v2.py index 4200090..287b2a2 100644 --- a/hotspot_proxy_v2.py +++ b/hotspot_proxy_v2.py @@ -68,10 +68,7 @@ class Proxy(DatagramProtocol): _peer_id = self.connTrack[port] elif _command == MSTN: _peer_id = data[6:10] - try: - self.peerTrack[_peer_id]['timer'].cancel() - except KeyError: - pass + self.peerTrack[_peer_id]['timer'].cancel() self.reaper(_peer_id) return elif _command == MSTP: