The Gemara says that
וא״ר חִסְדָא תּוּקְפָא בְבֵיתָא כִי קַרְיָא לְשוּמְשְמָא אִידִי וְְאִידִי בְאִיתְּתָא אֲבָל בְגַבְרָא לֵית לָן בָהּ
And Rav Chisda also said: Anger in a house is like a worm in the sesame plant. These statements refer to a woman, but in the case of a man there is no objection.
How is it that a woman who is angry is like a worm in a sesame but by a man it is ok?
Rambam in Hilchos Deos 2:3 writes:
אמרו חכמים הראשונים: כל הכועס כאילו עובד עבודת כוכבים
The early sages said: Anyone who gets angry, it’s as if he worshipped idolatry.
How can we reconcile the two of these?