Sentence:  The previous scandals , gaily <WSD>diverting</WSD> as they were , had only served to increase his popularity . 
Meaning of the word marked with <WSD> tags:  occupy in an agreeable, entertaining or pleasant fashion