Was this moved here so if that doesn't exist it's outside the try/catch and you'll see the KeyError exception. Does that need a test?