Skip to content

Commit 98824a2

Browse files
committed
Remove specialized exception in favor of built-in type
1 parent 0c65f67 commit 98824a2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tests/beacon/test_helpers.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@
6363
)
6464

6565

66-
class UnreachableCodePathError(Exception):
67-
pass
68-
69-
7066
@pytest.fixture()
7167
def sample_block(sample_beacon_block_params):
7268
return SerenityBeaconBlock(**sample_beacon_block_params)
@@ -886,8 +882,7 @@ def _corrupt_vote_count(params):
886882
new_vote_count,
887883
)
888884
else:
889-
msg = "list of ``custody_bit_0_indices`` should not exhaust ``itertools.count``"
890-
raise UnreachableCodePathError(msg)
885+
raise Exception("Unreachable code path")
891886

892887

893888
def _create_slashable_vote_data_messages(params):

0 commit comments

Comments
 (0)