IndexError is the correct exception to catch from filter