diff --git a/dvc/path_info.py b/dvc/path_info.py index 2d140f885..777944d96 100644 --- a/dvc/path_info.py +++ b/dvc/path_info.py @@ -194,11 +194,10 @@ class URLInfo(object): def relative_to(self, other): if isinstance(other, str): - other_str = other other = URLInfo(other) if self.scheme != other.scheme or self.netloc != other.netloc: raise ValueError( - "'{}' does not start with '{}'".format(self, other_str) + "'{}' does not start with '{}'".format(self, other) ) return self._path.relative_to(other._path)