selimsami / qforce

Apache License 2.0
57 stars 13 forks source link

sys.exit() or raise SystemExit #46

Closed xiki-tempula closed 2 years ago

xiki-tempula commented 2 years ago

I'm interested in using Qforce in my script where I could call it multiple times. I noticed that Qforce uses sys.exit() to quit the program, which causes a bit of problem with me as it will quit my script as well. I was thinking of using raise SystemExit instead of sys.exit(), I wonder what is your opinion? Thanks.

xiki-tempula commented 2 years ago

Ok it seems that this is a pycharm issue, where one could use raise SystemExit but not sys.exit().