From bd796901fa3f9c21e3a7355dcd4cf78f6b063a64 Mon Sep 17 00:00:00 2001 From: Frankie Fisher Date: Thu, 1 Feb 2024 23:15:50 +0000 Subject: [PATCH] fix: unused variable assignment that crashes --- screepsapi/screepsapi.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/screepsapi/screepsapi.py b/screepsapi/screepsapi.py index 3771bbd..2eb0693 100644 --- a/screepsapi/screepsapi.py +++ b/screepsapi/screepsapi.py @@ -523,8 +523,6 @@ def connect(self): logging.getLogger('websocket').addHandler(logging.NullHandler()) websocket.enableTrace(False) - prefix = PTR_PREFIX if ptr else prefix - url = 'wss://' if self.secure else 'ws://' url += self.host if self.host else OFFICIAL_HOST url += self.prefix if self.prefix else ''