refactor(errors): replace silent exception handling in console and server
This commit is contained in:
1 parent
41deb48005
commit
c76c9bb7e8
20 files changed
+267
-107
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user