I would rephrase this:

```python
raise CommandError('Version %s already exists: %s'% (version, e))
```