From ca6c957cfff5bc3682ee554617e108c7426cf5e9 Mon Sep 17 00:00:00 2001 From: Simon Ilincev Date: Wed, 26 Aug 2020 11:28:08 +0200 Subject: [PATCH] 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. --- 11-iface-abc/lotto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/11-iface-abc/lotto.py b/11-iface-abc/lotto.py index 2295b71..da8c2de 100644 --- a/11-iface-abc/lotto.py +++ b/11-iface-abc/lotto.py @@ -17,7 +17,7 @@ def pick(self): try: position = random.randrange(len(self._balls)) # <2> except ValueError: - raise LookupError('pick from empty BingoCage') + raise LookupError('pick from empty LotteryBlower') return self._balls.pop(position) # <3> def loaded(self): # <4>