Skip to content

Commit

Permalink
Fix another possible NoneType error when resolving relative URLs
Browse files Browse the repository at this point in the history
Ignoring empty URIs as those won't provide any value.
  • Loading branch information
deathaxe committed Nov 3, 2023
1 parent cfd05e7 commit 4689cdb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package_control/download_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ def resolve_urls(root_url, uris):
root_dir = ''

for url in uris:
if not url:
continue
if url.startswith('//'):
if scheme_match is not None:
url = scheme_match.group(1) + url
Expand Down

0 comments on commit 4689cdb

Please sign in to comment.