Skip to content

Issue with disconnect handler in player analytics #3

@Column01

Description

@Column01
Task exception was never retrieved
future: <Task finished name='Task-248' coro=<Process.console_output() done, defined at /home/server/MCConsoleAPI/src/MCConsoleAPI/services/process.py:254> exception=UnboundLocalError("cannot access local variable 'uuid' where it is not associated with a value")>
Traceback (most recent call last):
  File "/home/server/MCConsoleAPI/src/MCConsoleAPI/services/process.py", line 293, in console_output
    await self.player_analytics.on_player_disconnect(username)
  File "/home/server/MCConsoleAPI/src/MCConsoleAPI/services/player_analytics.py", line 76, in on_player_disconnect
    f"Player {username} with UUID {uuid} not found in temporary lookup. Skipping tracking."
                                   ^^^^
UnboundLocalError: cannot access local variable 'uuid' where it is not associated with a value

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions