Exceptions are pretty expensive. If an 'if' works just as well, python best practice defers to that. Here
```
if req.name in self._preinstalled_apps:
```