Python Forum

Full Version: error handler appears to be turned off. How do I turn it back on?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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