tylerdq / pdfca

Batch process text-containing PDF files for corpus and content analysis.
MIT License
0 stars 0 forks source link

Hard abort given invalid search command drilldown input #8

Closed tylerdq closed 5 years ago

tylerdq commented 5 years ago

Currently, if the user answers yes to the drilldown prompt after using the "search" command but provides a value that is not in the returned dataframe, the program will return a NameError: '<name> exception and exit in an ugly manner, preventing the user from trying again.

Perhaps write a function that checks if the input is in the dataframe and in case of an exception, returns an error message and asks for input again.

tylerdq commented 5 years ago

Addressed in commit c37d888