These errors were likely introduced when the code was run through a code formatter in my IDE. I don't know how I didn't notice them until now as they broke some functionality.
Added a few different exceptions that are likely to happen when trying to use this tool. It then offers useful feedback and quits.