tylerdq / sympoiesis

Find and make poems from unexpected words.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Null ouput for "thes" subprogram gives error

tylerdq opened this issue · comments

If the user requests a combination of part of speech and beginning letter that isn't present in the dictionary file (for example, a conjunction that starts with the letter "z"), the program returns:

IndexError: Cannot choose from an empty sequence

Add validation that checks if the combination is in the dictionary file and if not, prints more descriptive error text to guide the user.

Fixed in commit 931171b