ignore_errors#
- property Mapdl.ignore_errors: bool#
Invalid commands will be ignored rather than exceptions
Normally, any string containing “* ERROR *” from MAPDL will trigger a
MapdlRuntimeError
. Set this toTrue
to ignore these errors.For example, a command executed in the wrong processor will raise an exception when
ignore_errors=False
. This is the default behavior.Examples
>>> mapdl.post1() >>> mapdl.k(1, 0, 0, 0) Exception: K is not a recognized POST1 command, abbreviation, or macro.
Ignore these messages by setting ignore_errors=True
>>> mapdl.ignore_errors = True 2020-06-08 21:39:58,094 [INFO] : K is not a recognized POST1 command, abbreviation, or macro. This command will be ignored.
* WARNING * CP = 0.372 TIME= 21:39:58 K is not a recognized POST1 command, abbreviation, or macro. This command will be ignored.