Skip to content

Commit

Permalink
Merge pull request conda#8625 from yuvalreches/master
Browse files Browse the repository at this point in the history
Fix path_to_url "string index out of range" error
  • Loading branch information
msarahan authored May 6, 2019
2 parents 9cd612c + b030abf commit 817aa43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conda/common/url.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def path_to_url(path):
else bytes(path, "utf-8").decode('unicode-escape'))

# https://blogs.msdn.microsoft.com/ie/2006/12/06/file-uris-in-windows/
if path[1] == ':':
if len(path) > 1 and path[1] == ':':
path = file_scheme + '/' + path
else:
path = file_scheme + path
Expand Down

0 comments on commit 817aa43

Please sign in to comment.