You can't stick it in an `else` block because it needs to be run in two cases, one if `len(m) == 0` and the other if a `ValueError` wasn't raised.