Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/tools/test_network_backup_restore.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ async def test_nwk_frame_counter_zstack33(make_connected_znp):
znp.network_info, extended_pan_id=t.EUI64.convert("11:22:33:44:55:66:77:88")
)

with pytest.raises(ValueError):
with pytest.raises(KeyError):
await security.read_nwk_frame_counter(znp)

# Writes similarly will fail
Expand Down
2 changes: 1 addition & 1 deletion zigpy_znp/znp/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async def read_nwk_frame_counter(znp: ZNP, *, ext_pan_id: t.EUI64 = None) -> t.u
global_entry = entry

if global_entry is None:
raise ValueError("No security material entry was found for this network")
raise KeyError("No security material entry was found for this network")

return global_entry.FrameCounter

Expand Down