Skip to content

Issue with disconnect handler in player analytics #3

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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