bookmarks: catch the proper exception for missing revisions
This fixes a regression from 1.7
#!/usr/bin/env pythonimporterrno,os,sysforfinsys.argv[1:]:try:printf,'->',os.readlink(f)exceptOSError,err:iferr.errno!=errno.EINVAL:raiseprintf,'not a symlink'sys.exit(0)