The `pass` line is not required here, because you have a docstring, i.e. the code below is valid:

```python
class NodeIdTypeException(Exception):
    """Raised when something is wrong with node ID."""
```