It looks like you're new here. If you want to get involved, click one of these buttons!
I have started working on a PCell script in Python and I need to catch exceptions, but it seems I cannot for KLayout catches them somehow. I could not find any documentation on this. Does anyone know how to get the following code to work:
try: a = a except: print("You cannot do that!")
When I run this, KLayout catches the exception, so I never get to my except-statement.