Skip to main content
Raising KeyboardInterrupt instead of BaseException
Source Link

Maybe not too elegant, but it will stop the script in the middle and won't close Blender:

raise BaseExceptionKeyboardInterrupt()

Maybe not too elegant, but it will stop the script in the middle and won't close Blender:

raise BaseException()

Maybe not too elegant, but it will stop the script in the middle and won't close Blender:

raise KeyboardInterrupt()
Source Link
unfa
  • 1.2k
  • 16
  • 23

Maybe not too elegant, but it will stop the script in the middle and won't close Blender:

raise BaseException()