This PR catches the error when a template is stored but can not be read correctly.
Whether the the content of the file is valid JSON was already checked before. If it is valid but doesn't contain certain keys, a KeyError was thrown. This PR catches it.
This PR catches the error when a template is stored but can not be read correctly. Whether the the content of the file is valid JSON was already checked before. If it is valid but doesn't contain certain keys, a KeyError was thrown. This PR catches it.