Skip to content

Commit

Permalink
device_manager.py message incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardusrendy committed Mar 11, 2024
1 parent f7d37f6 commit a2dc095
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion alab_management/device_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,10 @@ def callback_publish(channel, delivery_tag, props, response):
or device_entry["status"] != DeviceTaskStatus.OCCUPIED.name
or device_entry["task_id"] != ObjectId(task_id)
):
device_task_id = str(device_entry["task_id"])
raise PermissionError(
f"Currently the task ({task_id}) "
f"does not occupy this device: {device}, which is currently occupied by task {task_id}"
f"does not occupy this device: {device}, which is currently occupied by task {device_task_id}"
)

result = self._device_view.execute_command(device, method, *args, **kwargs)
Expand Down

0 comments on commit a2dc095

Please sign in to comment.