Skip to content
← Back to Community
How do I get rid of the ``repl process died unexpectedly`` console line?
Profile icon
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
Profile icon
Glitterpoop
Comments
hotnewtop
Profile icon
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")

Profile icon
Glitterpoop

@19ecal thanks!

Profile icon
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.

import sys sys.exit('program ended')

like that.
That should work

Profile icon
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

Profile icon
BananaJellyfish

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

Profile icon
BananaJellyfish

@BananaJellyfish wait, no i'm wrong