Skip to content

Instantly share code, notes, and snippets.

@gkocjan

gkocjan/gifts_exception.py Secret

Created Dec 3, 2019
Embed
What would you like to do?
gifts_exception.py
Traceback (most recent call last):
File "/demo/santa/first_iteration.py", line 12, in <module>
recipient = random.choice(potential_gift_recipient)
File "/lib/python3.7/random.py", line 261, in choice
raise IndexError('Cannot choose from an empty sequence') from None
IndexError: Cannot choose from an empty sequence
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment