This `if` block is now indented too far to the right and so raises an `IndentationError` on this line.

It would also be better to indent the second condition one level further than the body of the `if` just to make it clear:
```
        if lightPathDichroic is not None and \
                lightPathDichroic._obj is not None:
```