Skip to content

Commit

Permalink
Location.canonical_path: use empty host if host is None, see #8446
Browse files Browse the repository at this point in the history
% borg repo-info
Location: rclone:///./pcloud:justtesting
  • Loading branch information
ThomasWaldmann committed Oct 2, 2024
1 parent 333663c commit 136d3dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/borg/helpers/parseformat.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ def canonical_path(self):
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,
)
Expand Down

0 comments on commit 136d3dc

Please sign in to comment.