I put my block of code that I know is generating the error in a try block but I still keep getting a KeyError error. I know the reason for getting this
try
error