Python Forum
error handler appears to be turned off. How do I turn it back on?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
error handler appears to be turned off. How do I turn it back on?
#1
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
Reply


Messages In This Thread
error handler appears to be turned off. How do I turn it back on? - by jpotter0 - Nov-26-2022, 11:44 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how to get process handler? maiya 1 1,657 Feb-23-2021, 07:34 AM
Last Post: maiya
  How to convert what appears to be a JSON file to CSV NewBeie 4 2,466 Aug-28-2020, 04:45 PM
Last Post: Larz60+
  Print a certain string only the first time it appears in a test file buttercup 5 2,697 Jul-23-2020, 01:30 PM
Last Post: palladium
  fileinput package appears to be zeroing files rexrf 0 1,438 Jul-01-2020, 06:05 PM
Last Post: rexrf
  Turn coordinates in string into a tuple Kolterdyx 3 2,695 Jun-10-2020, 05:04 AM
Last Post: buran
  Create exception handler oradba4u 7 3,025 May-23-2020, 03:25 AM
Last Post: oradba4u
  Custom logging handler looping continuously linuxaddikt 0 1,756 Mar-12-2020, 06:58 PM
Last Post: linuxaddikt
  How do i turn my program into a .exe julio2000 1 1,848 Feb-14-2020, 08:18 PM
Last Post: snippsat
  How do I turn a directory of HTML files into one CSV? glittergirl 2 1,748 Sep-21-2019, 05:33 PM
Last Post: glittergirl
  Turn py into exe tester21 4 2,982 Jul-22-2019, 04:31 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020