refactor(errors): replace silent exception handling in console and server

This commit is contained in:
somew1nd committed 2026-09-01 17:57:15 -07:00
1 parent 41deb48005
commit c76c9bb7e8
20 files changed
+267 -107

No files matched your search

+2 -1
View File
@@ -209,7 +209,8 @@ async def stop_task(
target_sid = str(body["session_id"])
if body.get("device_id"):
target_dev = str(body["device_id"])
except Exception:
except ValueError:
# Empty or non-JSON body: fall back to the query parameters.
pass
stopped = task_queue_service.stop_tasks(