Skip to content

Commit

Permalink
Fix always asking for multiline output.
Browse files Browse the repository at this point in the history
  • Loading branch information
germa89 committed Nov 2, 2023
1 parent d89968a commit 17d1e99
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ansys/mapdl/core/mapdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -2860,9 +2860,10 @@ def get(

value = response.split("=")[-1].strip()
if item3:
self._log.info(
f"The command '{command}' is showing the next message: '{value.splitlines()[1].strip()}'"
)
if len(value.splitlines()) > 1:
self._log.info(
f"The command '{command}' is showing the next message: '{value.splitlines()[1].strip()}'"
)
value = value.splitlines()[0]

try: # always either a float or string
Expand Down

0 comments on commit 17d1e99

Please sign in to comment.