mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-20 16:38:37 +01:00
Check that path starts with file://, not file:///
Because file:/// is not a thing on Windows.
This commit is contained in:
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…
Reference in a new issue