Skip to content

Commit 2649e54

Browse files
committed
[ModelicaSystem] check for file using is_file() instead of exists()
1 parent c165d5c commit 2649e54

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OMPython/ModelicaSystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ def requestApi(self, apiName, entity=None, properties=None): # 2
522522
return self.sendExpression(exp)
523523

524524
def xmlparse(self):
525-
if not self.xmlFile.exists():
525+
if not self.xmlFile.is_file():
526526
raise ModelicaSystemError(f"XML file not generated: {self.xmlFile}")
527527

528528
tree = ET.parse(self.xmlFile)

0 commit comments

Comments
 (0)