Making oEmbed work on the excerpt field

Not entirely sure it is supposed to be used like this, but by analogue with the_content try this:

add_filter('the_excerpt', array($wp_embed, 'autoembed'), 9);

error code: 523