or this?

```
if N % 1:
    raise ValueError("Filter order must be an integer")
```