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

Trying to restart through the UI can fail if state manager is completely borked #64

Open
markspolakovs opened this issue Dec 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@markspolakovs
Copy link
Member

2024-12-04 22:12:11,896  | [1113] [ERROR] Exception occurred while handling uri: 'http://studio1.ury.york.ac.uk:13500/restart'
Traceback (most recent call last):
  File "handle_request", line 100, in handle_request
  File "web_server.py", line 518, in restart
TypeError: 'NoneType' object is not subscriptable

BAPSicle/web_server.py

Lines 515 to 520 in 85f54d9

if request.args.get("confirm", '') != "true":
for i in range(server_state.get()["num_channels"]):
state = status(i)
if state["playing"]:
return render_template("restart-confirm.html", data=None)
server_state.update("running_state", "restarting")

Probably need some defensive checks there

@markspolakovs markspolakovs added the bug Something isn't working label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant