diff --git a/CHANGELOG.md b/CHANGELOG.md index fb3b8689..bcdec7c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ ### New features TBD ### Bug fixes -TBD +- Fix traceback on stats page for data missing data.get ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/824)) ### Tweaks TBD ### Lang 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