Exception handling for missing key added