You're misunderstand the `or` statement. What you want to do is

```python
if x is None or y is None:
    # moar codez!
```

If either `x` or `y` is *not* `None` then this will test `False`, but what you want to know is whether either of them is `None`. For example, `x` could be `1` and `y` could be `None`, but the above statement will test `False`.