Error :Band structure with Pymatgen (VASP)

Hello everyone,

I am facing an error when I plot the band structure in pymatgen. I am using the function “get_band_structure”.

IndexError: list index out of range.

In my repertory, when I run the code, I have my KPOINTS and vasprun.xml files.

This is the code:

And the error:

Can I have some help please ?