`exporter` should be a class here. 

This needs to be 

```python
 if issubclass(exporter.__class__, Exporter):
```