Skip to content

Commit 61e973a

Browse files
committed
chasing from raising a KeyError to a NotFoundError
1 parent eb037b7 commit 61e973a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/system_tests/test_blueapi_system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ def on_event(event: AnyEvent) -> None:
623623

624624
# Regression test for #1480
625625
def test_task_submission_after_invalid_task(client_with_stomp: BlueapiClient):
626-
with pytest.raises(KeyError):
626+
with pytest.raises(NotFoundError):
627627
# This task hasn't been submitted so should return an error...
628628
client_with_stomp._rest.update_worker_task(WorkerTask(task_id="missing"))
629629

0 commit comments

Comments
 (0)