Actually there's a bug in the documentation, it says you can use exception <number> but you actually need exceptions <number>. So for example exception 0 gives ** SyntaxError: invalid syntax, exceptions 0 works.
Originally posted by @user202729 in python/cpython#106676 (comment)