KeyboardInterrupt and SystemExit are not subclasses of Exception