This should use `if not revs.exists():` as it's slightly better cached. Also the exception class doesn't need to be instantiated.