Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix list hubs and musiclist #150

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update hubs.py
  • Loading branch information
UnDeviato authored Jun 28, 2024
commit 6d226ab5f02e68870c37215a33abf173e51d7efb
2 changes: 1 addition & 1 deletion server/commands/hubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def ooc_cmd_save_hub(client, arg):
hub = client.area.area_manager.save(ignore=["can_gm", "max_areas"])
if len(args) == 2 and args[1] == "read_only":
hub["read_only"] = True
if "music_ref" in hub["music_ref"] and hub["music_ref"] == "unsaved":
if "music_ref" in hub and hub["music_ref"] == "unsaved":
del hub["music_ref"]
for i in range(0, len(hub["areas"])):
if "music_ref" in hub["areas"][i] and hub["areas"][i]["music_ref"] == "unsaved":
Expand Down
Loading