Location.canonical_path: use empty host if host is None, see #8446

% borg repo-info
Location: rclone:///./pcloud:justtesting
This commit is contained in:
Thomas Waldmann 2024-10-02 18:52:47 +02:00
parent 333663c39c
commit 136d3dc20e
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -619,7 +619,7 @@ class Location:
return "{}://{}{}{}{}".format(
self.proto if self.proto else "???",
f"{self.user}@" if self.user else "",
self._host, # needed for ipv6 addrs
self._host if self._host else "", # needed for ipv6 addrs
f":{self.port}" if self.port else "",
path,
)