Skip to content
Sign upLog in

Repl Died unexpectedly

Profile icon
EseosaOmobude

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

You are viewing a single comment. View All
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