Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 2, 2021. It is now read-only.

Commit ca6c957

Browse files
authored
correct LookupError
We are no longer inside of the BingoCage class, so we should change the LookupError's wording to reflect that this is an error within the new LotteryBlower class.
1 parent 93a9ce6 commit ca6c957

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎11-iface-abc/lotto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def pick(self):
1717
try:
1818
position = random.randrange(len(self._balls)) # <2>
1919
except ValueError:
20-
raise LookupError('pick from empty BingoCage')
20+
raise LookupError('pick from empty LotteryBlower')
2121
return self._balls.pop(position) # <3>
2222

2323
def loaded(self): # <4>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /