Let's use EAFP style like this here:

```py
try:
    next = self.next
except AttributeError:
    return
next.parent = value
```

See `common.UncaughtAttributeError` for more info.