701
703
def convert_path_to_url(base, error_str):
704
706
# This looks like a URL, but we weren't able to
705
707
# instantiate it as such raise an appropriate error
707
709
# This doesn't look like a protocol, consider it a local path
708
710
new_base = urlutils.local_path_to_url(base)
709
711
mutter('converting os path %r => url %s', base, new_base)