Skip to content
Sign upLog in
← Back to Community
Repl Died unexpectedly
Profile icon
EseosaOmobude

My repl died unexpectedly. What was the problem? The code seems okay.

Voters
Profile icon
s0m3rand0mgu1
Profile icon
EseosaOmobude
Comments
hotnewtop
Profile icon
Grify

I get sh: 1: cls: not found Invalid Number of arguments

Profile icon
Grify

@Grify
You have it set to terminate
line 24:
sys.exit()

Profile icon
Grify

@Grify
When I run it, ```py
len(sys.argv) == 4

returns false and therefore it terminates itself
Profile icon
Grify

@Grify
sys.argv returns ['main.py']. This has to do with the way you wrote the code. If you copied+pasted/forked from elsewhere, you may need to adapt it to repl.it