I think I would prefer:
```python
if self.role == CrashDataBase.role:
    raise NotImplementedError('self.role not set')
if self.class_key == CrashDataBase.class_key:
    raise NotImplementedError('self.class_key not set')
return self.config[self.role][self.class_key](self.config[self.role])
```