Skip to content

Commit

Permalink
feat: adding early exit in flush_stored
Browse files Browse the repository at this point in the history
  • Loading branch information
germa89 committed Sep 24, 2024
1 parent 61c33f8 commit 05bd04d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ansys/mapdl/core/mapdl_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1900,6 +1900,9 @@ def _flush_stored(self):
Overridden by gRPC.
"""
if not self._stored_commands:
return # Early exit in case it is empty

self._log.debug("Flushing stored commands")
rnd_str = random_string()
tmp_out = os.path.join(tempfile.gettempdir(), f"tmp_{rnd_str}.out")
Expand Down

0 comments on commit 05bd04d

Please sign in to comment.