Skip to content

Commit 931f493

Browse files
committed
[OMCProcess] fix code
1 parent f48edc2 commit 931f493

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

OMPython/OMCSession.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ def omcpath(self, *path) -> OMCPath:
769769

770770
# fallback solution for Python < 3.12; a modified pathlib.Path object is used as OMCPath replacement
771771
if sys.version_info < (3, 12):
772-
if isinstance(self.omc_process, OMCProcessLocal):
772+
if isinstance(self._omc_process, OMCProcessLocal):
773773
# noinspection PyArgumentList
774774
return OMCPath(*path)
775775
raise OMCProcessException("OMCPath is supported for Python < 3.12 only if OMCProcessLocal is used!")
@@ -880,7 +880,7 @@ def sendExpression(self, command: str, parsed: bool = True) -> Any:
880880
attempts += 1
881881
if attempts >= 50:
882882
# in the deletion process, the content is cleared. Thus, any access to a class attribute must be checked
883-
log_content = self.omc_process.get_log() if hasattr(self, 'omc_process') else 'log not available'
883+
log_content = self.get_log() if hasattr(self, 'omc_process') else 'log not available'
884884
raise OMCProcessException(f"No connection with OMC (timeout={timeout}). "
885885
f"Log-file says: \n{log_content}")
886886
time.sleep(timeout / 50.0)

0 commit comments

Comments
 (0)