catching `AttributeError` and `ValueError` should do it, but as long as you pass a string to `EasyVersion` (a.k.a. `LooseVersion`), there never should be an exception

fixed