Can you check that this key is present in the instance dict and raise an exception with an explicit message in case it's not ?