Skip to content

Commit 3dc171a

Browse files
committed
[OMCSessionZMQ] raise stacklevel for warning in execute()
1 parent 863ccb0 commit 3dc171a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OMPython/OMCSession.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ def __del__(self):
324324

325325
def execute(self, command: str):
326326
warnings.warn("This function is depreciated and will be removed in future versions; "
327-
"please use sendExpression() instead", DeprecationWarning, stacklevel=1)
327+
"please use sendExpression() instead", DeprecationWarning, stacklevel=2)
328328

329329
return self.sendExpression(command, parsed=False)
330330

0 commit comments

Comments
 (0)