Wrong syntax. It should be try...except.