We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33d6376 commit cc9b366Copy full SHA for cc9b366
bagit.py
@@ -774,7 +774,9 @@ def validate_fetch(self):
774
# well formed:
775
parsed_url = urlparse(url)
776
777
- if not all((parsed_url.scheme, parsed_url.netloc)):
+ # each parsed url must resolve to a scheme and point to a netloc
778
+ # if the scheme is file, netloc is not necessary
779
+ if not (all((parsed_url.scheme, parsed_url.netloc)) or parsed_url.scheme == "file"):
780
raise BagError(_("Malformed URL in fetch.txt: %s") % url)
781
782
def _validate_contents(self, processes=1, fast=False, completeness_only=False):
0 commit comments