Python Forum
error handler appears to be turned off. How do I turn it back on? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: error handler appears to be turned off. How do I turn it back on? (/thread-38800.html)



error handler appears to be turned off. How do I turn it back on? - jpotter0 - Nov-26-2022

I am using pyaedt to write scripts for ANSYS HFSS. I think my issue is Python related.

I have a code segment that was working but is now not working after editing non-related code.

    obj_name = Cell[cellnum]
    faces = obj_name.faces_on_bounding_box
    sym_name1 = "sym1-cell" + str(cellnum)
    face_id1 = faces[7]
    aedtapp.assign_symmetry(face_id1, symmetry_name=sym_name1, is_perfect_e=False)
if I trace it into the aedtapp.assigm_symmetry function I enter an error handler. The error handler looks at settings.enable_error_handler. If the item is True it returns "result". if not it returns "False". Apparently, the error handler is turned off. How do I turn it back on?

Jim