Skip to content

Commit b222410

Browse files
committed
Fixing coverage
1 parent c59a419 commit b222410

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ansys/mapdl/core/mapdl.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3178,18 +3178,18 @@ def directory(self) -> str:
31783178
while (not self._path and i > 5) or i == 0:
31793179
try:
31803180
self._path = self.inquire("", "DIRECTORY")
3181-
except Exception:
3181+
except Exception: # pragma: no cover
31823182
pass
31833183
i += 1
3184-
if not self._path:
3184+
if not self._path: # pragma: no cover
31853185
time.sleep(0.1)
31863186

31873187
# os independent path format
31883188
if self._path: # self.inquire might return ''.
31893189
self._path = self._path.replace("\\", "/")
31903190
# new line to fix path issue, see #416
31913191
self._path = repr(self._path)[1:-1]
3192-
else:
3192+
else: # pragma: no cover
31933193
raise IOError(
31943194
f"The directory returned by /INQUIRE is not valid ('{self._path}')."
31953195
)

0 commit comments

Comments
 (0)