More compact solution
```python
code = self.error_code_map.get(error_code, error_code)
```