Server MOTD causing traceback on page load

Quick Information

  • Operating System: Windows / Linux / MacOS / UnRAID
  • Install Type: Git Cloned(Manual) / Installer / WinPackage / Docker

What Happened?

Getting this error message when navigating to server page:

Traceback (most recent call last):
  File "/crafty/.venv/lib/python3.10/site-packages/tornado/web.py", line 1786, in _execute
    result = await result
  File "/crafty/app/classes/web/panel_handler.py", line 577, in get
    page_data["get_players"] = server.get_server_players()
  File "/crafty/app/classes/shared/server.py", line 1699, in get_server_players
    int_mc_ping = ping(internal_ip, int(server_port))
  File "/crafty/app/classes/minecraft/mc_ping.py", line 174, in ping
    return Server(json.loads(data))
  File "/crafty/app/classes/minecraft/mc_ping.py", line 41, in __init__
    if "bold" in e.keys():
AttributeError: 'str' object has no attribute 'keys'

Expected result

Server page should load normally.

Steps to reproduce

Unsure as of yet. We've narrowed this down to MOTD, but have not yet been able to track exactly what character is doing it. (My guess is the escaped slashes.)

Priority/Severity

  • High (anything that impacts the normal user flow or blocks app usage)
  • Medium (anything that negatively affects the user experience)
  • Low (anything else e.g., typos, missing icons/translations, layout/formatting issues, etc.)