From 637b41ec6098a350f4d1b81b7d4d8a2437a48bd8 Mon Sep 17 00:00:00 2001 From: Andrew Date: Sun, 19 Jan 2025 19:51:25 -0500 Subject: [PATCH] Fix dictionary get --- app/classes/minecraft/mc_ping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/classes/minecraft/mc_ping.py b/app/classes/minecraft/mc_ping.py index df63ae01..a2c2ac67 100644 --- a/app/classes/minecraft/mc_ping.py +++ b/app/classes/minecraft/mc_ping.py @@ -94,7 +94,7 @@ class Players(list): class Player: def __init__(self, data): self.id = data.get("id", "") - self.name = data("name", "Anonymous") + self.name = data.get("name", "Anonymous") def __str__(self): return self.name