IDE: exit in try: block throws Exception
workaround see comment #1
-------
*****
updated my comments for workaround
Hi
i wish to gracefully end my application. however when it use exit or exit(2) i always get an SystemExit exception
is there a way i can avoid systemexit exception?
build 2.0.4
below is sample code
try:
print("help")
exit()
except:
print("in except:")
output
help
in except:
if i add traceback then below is detailed output
help
in except:
sky>in error
Traceback (most recent call last):
File "C:\Perf\
exit()
File "C:\Users\
sys.exit(code)
SystemExit: 0
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: