Above exception is thrown in the following line, just after starting the wrapper with the game running and a session opened: https://github.com/EmperorCookie/accapi/blob/f93040b4b8ae30f569efadfe4e29ce9761155a9d/src/accapi/client.py#L103 Here is the traceback: ``` Traceback (most recent call last): File "D:\Development\accapi\src\accapi\client.py", line 417, in _run self._receiveMethods[messageType]() File "D:\Development\accapi\src\accapi\client.py", line 263, in _receive_registration_result result = RegistrationResult.receive(self._receive) File "D:\Development\accapi\src\accapi\structs.py", line 34, in receive return cls(*cls.receive_args(receiveMethod)) File "D:\Development\accapi\src\accapi\structs.py", line 38, in receive_args args = receiveMethod("i??s") File "D:\Development\accapi\src\accapi\client.py", line 258, in _receive val, = struct.unpack(f"{self.endianess}{f}", self._reader.read(struct.calcsize(f))) File "D:\Development\accapi\src\accapi\client.py", line 103, in read return data UnboundLocalError: local variable 'data' referenced before assignment ``` It seems the ifs above are not exhaustive, however I do not fully understand the code in that method yet. Probably a quick fix for you, otherwise I will investigate it further tomorrow.
This issue appears to be discussing a feature request or bug report related to the repository. Based on the content, it seems to be resolved. The issue was opened by ptoews and has received 3 comments.