Skip to content

fix: compat mcstatus v13 module path changes#2

Open
This-is-XiaoDeng wants to merge 1 commit into
masterfrom
fix/mcstatus-v13-compat
Open

fix: compat mcstatus v13 module path changes#2
This-is-XiaoDeng wants to merge 1 commit into
masterfrom
fix/mcstatus-v13-compat

Conversation

@This-is-XiaoDeng

Copy link
Copy Markdown
Member

Problem

mcstatus v13 restructured module paths, breaking these imports:

  • mcstatus.status_response -> mcstatus.responses
  • mcstatus.bedrock_status -> mcstatus.responses
  • mcstatus.motd.transformers -> mcstatus.motd._transformers

Fix

Use try/except ModuleNotFoundError to support both old (v11/v12) and new (v13) versions.

- mcstatus.status_response → mcstatus.responses
- mcstatus.bedrock_status → mcstatus.responses
- mcstatus.motd.transformers → mcstatus.motd._transformers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant