Added try-except to config file content.