Skip to content

Commit 3fd91a1

Browse files
committed
Remove specialized exception in favor of built-in type
1 parent 9fe6b38 commit 3fd91a1

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
@@ -62,10 +62,6 @@
6262
)
6363

6464

65-
class UnreachableCodePathError(Exception):
66-
pass
67-
68-
6965
@pytest.fixture()
7066
def sample_block(sample_beacon_block_params):
7167
return SerenityBeaconBlock(**sample_beacon_block_params)
@@ -861,8 +857,7 @@ def _corrupt_vote_count(params):
861857
new_vote_count,
862858
)
863859
else:
864-
msg = "list of ``custody_bit_0_indices`` should not exhaust ``itertools.count``"
865-
raise UnreachableCodePathError(msg)
860+
raise Exception("Unreachable code path")
866861

867862

868863
def _create_slashable_vote_data_messages(params):

0 commit comments

Comments
 (0)