This is purely stylistic but I recommend lining up this line with the start of the string above it, i.e.:

```
option_parser.error("metric %s requires a tree, but "
                    "none found" % metric)
```