Skip to content

Instantly share code, notes, and snippets.

@gkocjan
Created December 3, 2019 11:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gkocjan/2b363702e1f56e57e1e2a927c1396c31 to your computer and use it in GitHub Desktop.
Save gkocjan/2b363702e1f56e57e1e2a927c1396c31 to your computer and use it in GitHub Desktop.
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