Check that path starts with file://, not file:///

Because file:/// is not a thing on Windows.
pull/977/head
Kitsune Ral 6 years ago
parent 2c9f00d37a
commit d17ec7f184

@ -126,7 +126,7 @@ def resolve_references(path, schema):
def load_file(path):
print("Loading reference: %s" % path)
if not path.startswith("file:///"):
if not path.startswith("file://"):
raise Exception("Bad ref: %s" % (path,))
path = path[len("file://"):]
with open(path, "r") as f:

Loading…
Cancel
Save