Overiding error message when using a python program

aleksander.helgaker at gmail.com aleksander.helgaker at gmail.com
Fri Apr 22 11:04:06 EDT 2005


Thanks, this works great.

I edited def prompt_user() so that it now reads

<code>
def prompt_user():
	try:
		userinput = input(">")
	except NameError:
		print "Command not recognised"
</code>




More information about the Python-list mailing list