Skip to content

Commit

Permalink
Removed incorrect passing of imported_schema_uris to parse_taconomy_u…
Browse files Browse the repository at this point in the history
…rl that cuases a set hashing error
  • Loading branch information
Sam-el0 committed May 14, 2024
1 parent 6920a6e commit e28b5e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xbrl/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,15 +463,15 @@ def parse_ixbrl(instance_path: str, cache: HttpCache, instance_url: str or None

if is_url(schema_uri):
# fetch the taxonomy extension schema from remote
taxonomy: TaxonomySchema = parse_taxonomy_url(schema_uri, cache, imported_schema_uris)
taxonomy: TaxonomySchema = parse_taxonomy_url(schema_uri, cache)
elif schema_root:
# take the given schema_root path as directory for searching for the taxonomy schema
schema_path = str(next(Path(schema_root).glob(f'**/{schema_uri}')))
taxonomy: TaxonomySchema = parse_taxonomy(schema_path, cache, imported_schema_uris)
elif instance_url:
# fetch the taxonomy extension schema from remote by reconstructing the url
schema_url = resolve_uri(instance_url, schema_uri)
taxonomy: TaxonomySchema = parse_taxonomy_url(schema_url, cache, imported_schema_uris)
taxonomy: TaxonomySchema = parse_taxonomy_url(schema_url, cache)
else:
# try to find the taxonomy extension schema file locally because no full url can be constructed
schema_path = resolve_uri(instance_path, schema_uri)
Expand Down

0 comments on commit e28b5e2

Please sign in to comment.