You don't fly through storm cells old chap, no matter how violent the storms related to them may be
...and maybe that is why the aircraft diverted. (?)
Some pretty hefty thunderstorms around Barcelona on the very same evening, resulting in several diverts away from BCN.