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


Possibly Related Threads…
Thread Author Replies Views Last Post
  how to get process handler? maiya 1 1,117 Feb-23-2021, 07:34 AM
Last Post: maiya
  How to convert what appears to be a JSON file to CSV NewBeie 4 1,844 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 1,880 Jul-23-2020, 01:30 PM
Last Post: palladium
  fileinput package appears to be zeroing files rexrf 0 1,111 Jul-01-2020, 06:05 PM
Last Post: rexrf
  Create exception handler oradba4u 7 2,139 May-23-2020, 03:25 AM
Last Post: oradba4u
  Custom logging handler looping continuously linuxaddikt 0 1,271 Mar-12-2020, 06:58 PM
Last Post: linuxaddikt
  How do i turn my program into a .exe julio2000 1 1,319 Feb-14-2020, 08:18 PM
Last Post: snippsat
  Turn py into exe tester21 4 2,262 Jul-22-2019, 04:31 PM
Last Post: nilamo
  Code works in IDLE, appears to work in CMD, but won't produce files in CMD/Windows ChrisPy33 3 2,613 Jun-12-2019, 05:56 AM
Last Post: ChrisPy33
  Because the emoji appears black and white at the exit ? nerd 3 4,573 Jan-28-2019, 11:34 PM
Last Post: nerd

Forum Jump:

User Panel Messages

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