Ask coding questions

← Back to all posts
How do I get rid of the ``repl process died unexpectedly`` console line?
Glitterpoop

So I used the sys module for the first time. I implicitly told what should be printed when the sys.exit("Bye Bye") line is run.
So it does print 'Bye Bye' but why does it print repl process died unexpectedly???

Answered by 19ecal [earned 5 cycles]
View Answer
Voters
Glitterpoop
Comments
hotnewtop
19ecal

I think this happens when you force the program to exit, because if a program just runs to the end it won't do this. You can't stop it saying repl process died unexpectedly if you are going to use exit(). Also, I don't think you need to import sys, I think you can just do exit("Bye Bye")

Glitterpoop

@19ecal thanks!

RYANTADIPARTHI

It actually did what you want. Exit the program. But it just says repl ended or died. It's just like that. But maybe, while exiting, print something else instead of died.

like that.
That should work

OldWizard209

This is a bug that happens on repl.it all the time. Don't worry, just refresh the page or open the repl on a new tab. No work will be lost. @Glitterpoop

BananaJellyfish

if you remove the 'sys. exit' bit i think it should still work without saying it died unexpectedly.

BananaJellyfish

@BananaJellyfish wait, no i'm wrong