Skip to content

Commit 2496914

Browse files
committed
fix
1 parent 616f3ea commit 2496914

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/sempy_labs/tom/_model.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5089,9 +5089,7 @@ def _import_linguistic_schema(self, file_path: str):
50895089
f"{icons.red_dot} The culture of the schema_file is not a valid culture within the semantic model."
50905090
)
50915091

5092-
for c in self.model.Cultures:
5093-
if c.Name == culture_name:
5094-
c.LinguisticMetadata.Content = json.dumps(schema_file, indent=4)
5092+
self.model.Cultures[culture_name].LinguisticMetadata.Content = json.dumps(schema_file, indent=4)
50955093

50965094
def close(self):
50975095

0 commit comments

Comments
 (0)