Corrected TypeError when KeyError was raised

Message:

TypeError: can only concatenate list (not "str") to list