WordPress excerpt not working

I actually solved it myself, it turns out there was this piece of code which I removed that solved my problem:

    function custom_excerpt_length( $length ) {
        return 0;
    }
    add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );

Not sure what it does though, but it doesn’t seem like I need it.

tech