[Tutor] Exception handling - syntaxerror?!

Krishna calvinkrishy at gmail.com
Sun Sep 25 15:25:48 CEST 2005

When I try to run the following piece of code, I get a SyntaxError,
can someone help me out on this?

... 	os.system("cls")
... except:
... 	print "Foo"
... print "Bar"
Traceback (  File "<interactive input>", line 5
    print "Bar"
SyntaxError: invalid syntax

What am I missing?

Thanks in advance,

More information about the Tutor mailing list